iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIRadialGradientBrushStyle
@interface SCIRadialGradientBrushStyle : SCIGradientBrushStyle
Defines brush style which allows to fill shapes with radial gradient.
-
Gets the
[x, y]
coordinates of the gradient’s center.Declaration
Objective-C
@property (nonatomic, readonly) CGPoint center;
Swift
var center: CGPoint { get }
-
Gets he radius of the gradient.
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat radius;
Swift
var radius: CGFloat { get }
-
Creates a new instance of
SCIRadialGradientBrushStyle
.Declaration
Objective-C
- (nonnull instancetype)initWithCenterColor:(nonnull UIColor *)centerColor edgeColor:(nonnull UIColor *)edgeColor;
Parameters
centerColor
The center color of the gradient.
edgeColor
The edge color of the gradient.
-
Creates a new instance of
SCIRadialGradientBrushStyle
.Declaration
Objective-C
- (nonnull instancetype)initWithCenter:(CGPoint)center radius:(CGFloat)radius centerColor:(nonnull UIColor *)centerColor edgeColor:(nonnull UIColor *)edgeColor;
Parameters
center
The
[x, y]
coordinates of the gradient’s center.radius
The radius of the gradient.
centerColor
The center color of the gradient.
edgeColor
The edge color of the gradient.
-
Creates a new instance of
SCIRadialGradientBrushStyle
.Declaration
Objective-C
- (nonnull instancetype)initWithCenterColorCode:(unsigned int)centerColor edgeColorCode:(unsigned int)edgeColor;
Parameters
centerColor
The center color code of the gradient.
edgeColor
The edge color code of the gradient.
-
Creates a new instance of
SCIRadialGradientBrushStyle
.Declaration
Objective-C
- (nonnull instancetype)initWithCenter:(CGPoint)center radius:(CGFloat)radius centerColorCode:(unsigned int)centerColor edgeColorCode:(unsigned int)edgeColor;
Parameters
center
The
[x, y]
coordinates of the gradient’s center.radius
The radius of the gradient.
centerColor
The center color code of the gradient.
edgeColor
The edge color code of the gradient.
-
Creates a new instance of
SCIRadialGradientBrushStyle
.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.
-
Creates a new instance of
SCIRadialGradientBrushStyle
.Declaration
Objective-C
- (nonnull instancetype)initWithCenter:(CGPoint)center radius:(CGFloat)radius colors:(nonnull const unsigned int *)colors stops:(nonnull const float *)stops count:(int)count;
Parameters
center
The
[x, y]
coordinates of the gradient’s center.radius
The radius of the gradient.
colors
The array with gradient colors.
stops
The array with gradient stops.
-
Creates a new instance of
SCIRadialGradientBrushStyle
.Declaration
Objective-C
- (nonnull instancetype)initWithCenter:(CGPoint)center radius:(CGFloat)radius colorValues: (nonnull SCIUnsignedIntegerValues *)colors stopValues:(nonnull SCIFloatValues *)stops;
Swift
init(center: CGPoint, radius: CGFloat, colorValues colors: SCIUnsignedIntegerValues, stop stops: SCIFloatValues)
Parameters
center
The
[x, y]
coordinates of the gradient’s center.radius
The radius of the gradient.
colors
The
SCIFloatValues
with gradient colors.stops
The
SCIUnsignedIntegerValues
with gradient stops.