scale abstract method
- double factor
Returns a new gradient with its properties scaled by the given factor.
A factor of 0.0 (or less) should result in a variant of the gradient that is invisible; any two factors epsilon apart should be unnoticeably different from each other at first glance. From this it follows that scaling a gradient with values from 1.0 to 0.0 over time should cause the gradient to smoothly disappear.
Typically this is the same as interpolating from null (with lerp).
Implementation
Gradient scale(double factor);