Instance Method
colorLineScaled(by:)colorLineScaledBy:colorLineScaledBy_
Returns a new color line equal to this color line except all color stop offsets are scaled by a given factor.
Declaration
func colorLineScaled(by factor: CGFloat) -> GSColorLineDeclaration
- (GSColorLine *) colorLineScaledBy:(CGFloat) factor;Declaration
colorLineScaledBy_(factor: float) -> GSColorLineDiscussion
The factor must be in the range 0–1 where a scale with a factor of 1 returns this color line.
A scale with a factor less than 1 returns a new color line where the scale factor has been applied to all color stops. This color line contains an additional color stop at offset 1 with the same color as the first color stop.