iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCILinearGradientBrushStyle
@interface SCILinearGradientBrushStyle : SCIGradientBrushStyle
Defines brush style which allows to fill shapes with linear gradient.
-
Gets the start point for linear gradient.
Declaration
Objective-C
@property (nonatomic, readonly) CGPoint start;Swift
var start: CGPoint { get } -
Gets the end point for linear gradient.
Declaration
Objective-C
@property (nonatomic, readonly) CGPoint end;Swift
var end: CGPoint { get } -
Creates a new instance of
SCILinearGradientBrushStyle.Declaration
Objective-C
- (nonnull instancetype)initWithStartColor:(nonnull UIColor *)startColor endColor:(nonnull UIColor *)endColor;Parameters
startColorThe start color of the gradient.
endColorThe end color of the gradient.
-
Creates a new instance of
SCILinearGradientBrushStyle.Declaration
Objective-C
- (nonnull instancetype)initWithStart:(CGPoint)start end:(CGPoint)end startColor:(nonnull UIColor *)startColor endColor:(nonnull UIColor *)endColor;Parameters
startThe start point for linear gradient.
endThe end point for linear gradient.
startColorThe start color of the gradient.
endColorThe end color of the gradient.
-
Creates a new instance of
SCILinearGradientBrushStyle.Declaration
Objective-C
- (nonnull instancetype)initWithStartColorCode:(unsigned int)startColor endColorCode:(unsigned int)endColor;Parameters
startColorThe start color code of the gradient.
endColorThe end color code of the gradient.
-
Creates a new instance of
SCILinearGradientBrushStyle.Declaration
Objective-C
- (nonnull instancetype)initWithStart:(CGPoint)start end:(CGPoint)end startColorCode:(unsigned int)startColor endColorCode:(unsigned int)endColor;Parameters
startThe start point for linear gradient.
endThe end point for linear gradient.
startColorThe start color code of the gradient.
endColorThe end color code of the gradient.
-
Creates a new instance of
SCILinearGradientBrushStyle.Declaration
Objective-C
- (nonnull instancetype)initWithColors:(nonnull const unsigned int *)colors stops:(nonnull const float *)stops count:(int)count;Parameters
colorsThe array with gradient colors.
stopsThe array with gradient stops.
countThe count of color and stops.
-
Creates a new instance of
SCILinearGradientBrushStyle.Declaration
Objective-C
- (nonnull instancetype)initWithStart:(CGPoint)start end:(CGPoint)end colors:(nonnull const unsigned int *)colors stops:(nonnull const float *)stops count:(int)count;Parameters
startThe start point for linear gradient.
endThe end point for linear gradient.
colorsThe array with gradient colors.
stopsThe array with gradient stops.
countThe count of color and stops.
-
Creates a new instance of
SCILinearGradientBrushStyle.Declaration
Objective-C
- (nonnull instancetype)initWithStart:(CGPoint)start end:(CGPoint)end colorValues:(nonnull SCIUnsignedIntegerValues *)colors stopValues:(nonnull SCIFloatValues *)stops;Swift
init(start: CGPoint, end: CGPoint, colorValues colors: SCIUnsignedIntegerValues, stop stops: SCIFloatValues)Parameters
startThe start point for linear gradient.
endThe end point for linear gradient.
colorsThe
SCIUnsignedIntegerValueswith gradient colors.stopsThe
SCIFloatValueswith gradient stops.
View on GitHub