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
centerColorThe center color of the gradient.
edgeColorThe 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
centerThe
[x, y]coordinates of the gradient’s center.radiusThe radius of the gradient.
centerColorThe center color of the gradient.
edgeColorThe 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
centerColorThe center color code of the gradient.
edgeColorThe 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
centerThe
[x, y]coordinates of the gradient’s center.radiusThe radius of the gradient.
centerColorThe center color code of the gradient.
edgeColorThe 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
colorsThe array with gradient colors.
stopsThe 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
centerThe
[x, y]coordinates of the gradient’s center.radiusThe radius of the gradient.
colorsThe array with gradient colors.
stopsThe 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
centerThe
[x, y]coordinates of the gradient’s center.radiusThe radius of the gradient.
colorsThe
SCIFloatValueswith gradient colors.stopsThe
SCIUnsignedIntegerValueswith gradient stops.
View on GitHub