iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIGradientColorPalette
@interface SCIGradientColorPalette : SCIBrushColorPalette
Defines a linear gradient color palette which can be used with SCISurfaceMeshRenderableSeries3D and SCIFreeSurfaceRenderableSeries3D e.g. to give a height-map at runtime.
-
Creates a new instance of
SCIGradientColorPaletteclass.Declaration
Objective-C
- (nonnull instancetype)initWithColors:(nonnull const unsigned int *)colors stops:(nonnull const float *)stops count:(NSInteger)count;Parameters
colorsThe array with gradient colors.
stopsThe array with gradient stops.
-
Creates a new instance of
SCIGradientColorPaletteclass.Declaration
Objective-C
- (nonnull instancetype)initWithColors:(nonnull const unsigned int *)colors stops:(nonnull const float *)stops count:(NSInteger)count isStepped:(BOOL)isStepped;Parameters
colorsThe array with gradient colors.
stopsThe array with gradient stops.
isSteppedThe value indicating whether the palette is stepped (true), or linear interpolated (false).
View on GitHub