positions
Parameters
positions
Relative positions of each color across the gradient. If empty, the the colors are distributed evenly. If this is not null, the values must lie between 0.0 and 1.0, and be strictly increasing. If the first value is not 0.0, then an additional color stop is added at position 0.0, with the same color as colors0. If the the last value is less than 1.0, then an additional color stop is added at position 1.0, with the same color as colorscount - 1.