
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
startColor
The start color of the gradient.
endColor
The 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
start
The start point for linear gradient.
end
The end point for linear gradient.
startColor
The start color of the gradient.
endColor
The 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
startColor
The start color code of the gradient.
endColor
The 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
start
The start point for linear gradient.
end
The end point for linear gradient.
startColor
The start color code of the gradient.
endColor
The 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
colors
The array with gradient colors.
stops
The array with gradient stops.
count
The 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
start
The start point for linear gradient.
end
The end point for linear gradient.
colors
The array with gradient colors.
stops
The array with gradient stops.
count
The 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
start
The start point for linear gradient.
end
The end point for linear gradient.
colors
The
SCIUnsignedIntegerValues
with gradient colors.stops
The
SCIFloatValues
with gradient stops.