"setSeriesColorMap"

Defines all stops of a color map.

Synopsis

void shape.setSeriesColorMap(int series, dyn_dyn_float colors);

Parameters

Parameters Description
series Number of the series
colors The colors in RGBA values.

Description

This function defines a color stop at the position. It works similarly to setSeriesColorStop, but allows you to set all stops at once.

For this function the colors are not given by name but by RGBA values. The dyn_float which defines a color stop can be given with:

  • 3 values in the dyn_float: defines
    R, G, B
  • 4 values in the dyn_float: defines
    R, G, B, A

Each value is between 0.0 ... 1.0

In these 2 cases above, the position of the stop (between 0.0 ... 1.0) is calculated and evenly distributed.

E.g.:

  • 2 entries in the dyn_dyn_float => stops at: 0.0, 1.0
  • 3 entries in the dyn_dyn_float => stops at: 0.0, 0.5, 1.0

When all dyn_float arrays inside the dyn_dyn_float have 5 values, then these values also define the stop position:

  • 5 values in the dyn_float: defines
    position, R, G, B, A

All 5 values need to be given for all items in the dyn_dyn_float to allow to define the stop positions!

Assignment

Chart.ewo