Class
GSColorLine
A color line is a sorted collection of color stops used to describe a gradient.
Declaration
class GSColorLineDeclaration
@interface GSColorLine : NSObjectDeclaration
class GSColorLine(NSObject)Overview
A rendition of the color line uses interpolation to determine the color values between the color stops. Color values are interpolated by linearly interpolating the color components in the linear sRGB color space.
Topics
Initializers
Creates a color line with the most recently registered color line.
Creates a color line that represented a subtle color sharing based on a single color.
Creates a color line with the given color stops.
Instance Properties
The color space in which to perform interpolation of the color stops.
The color stops of the color line.
Returns a new color line with equivalent color stops but in reversed order.
Instance Methods
Returns a new color line representing the part of the receiver between
minandmax.Returns a new color line equal to this color line except all color stop offsets are scaled by a given factor.
See the docs for the equivalent method on GSFont.
Type Methods
Register a color line as the most recently used color line for future reuse with
-[GSColorLine init].
Topics
Instance Properties
The color space in which to perform interpolation of the color stops.
The color stops of the color line.
Returns a new color line with equivalent color stops but in reversed order.
Instance Methods
Returns a new color line representing the part of the receiver between
minandmax.Returns a new color line equal to this color line except all color stop offsets are scaled by a given factor.
Creates a color line with the most recently registered color line.
Creates a color line that represented a subtle color sharing based on a single color.
Creates a color line with the given color stops.
See the docs for the equivalent method on GSFont.
Type Methods
Register a color line as the most recently used color line for future reuse with
-[GSColorLine init].
Relationships
Inherits From
NSObject
Conforms To
NSCopyingObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.Hashable
Relationships
Inherits From
NSObject
Conforms To
NSCopying