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;

    Swift

    init(center centerColor: UIColor, edgeColor: UIColor)

    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;

    Swift

    init(center: CGPoint, radius: CGFloat, center centerColor: UIColor, edgeColor: UIColor)

    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;

    Swift

    init(centerColorCode centerColor: UInt32, edgeColorCode edgeColor: UInt32)

    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;

    Swift

    init(center: CGPoint, radius: CGFloat, centerColorCode centerColor: UInt32, edgeColorCode edgeColor: UInt32)

    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 unsigned int *)colors
                                     stops:(nonnull float *)stops
                                     count:(int)count;

    Swift

    init(colors: UnsafeMutablePointer<UInt32>, stops: UnsafeMutablePointer<Float>, count: Int32)

    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 unsigned int *)colors
                                     stops:(nonnull float *)stops
                                     count:(int)count;

    Swift

    init(center: CGPoint, radius: CGFloat, colors: UnsafeMutablePointer<UInt32>, stops: UnsafeMutablePointer<Float>, count: Int32)

    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.