
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
SCIGradientColorPalette
class.Declaration
Objective-C
- (nonnull instancetype)initWithColors:(nonnull const unsigned int *)colors stops:(nonnull const float *)stops count:(NSInteger)count;
Parameters
colors
The array with gradient colors.
stops
The array with gradient stops.
-
Creates a new instance of
SCIGradientColorPalette
class.Declaration
Objective-C
- (nonnull instancetype)initWithColors:(nonnull const unsigned int *)colors stops:(nonnull const float *)stops count:(NSInteger)count isStepped:(BOOL)isStepped;
Parameters
colors
The array with gradient colors.
stops
The array with gradient stops.
isStepped
The value indicating whether the palette is stepped (true), or linear interpolated (false).