Declaration

func colorLineScaled(by factor: CGFloat) -> GSColorLine

Declaration

- (GSColorLine *) colorLineScaledBy:(CGFloat) factor;

Declaration

colorLineScaledBy_(factor: float) -> GSColorLine

Discussion

The factor must be in the range 01 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.