addColorStop method

void addColorStop(
  1. num offset,
  2. String color
)

The CanvasGradient.addColorStop() method adds a new color stop, defined by an offset and a color, to a given canvas gradient.

Implementation

external void addColorStop(
  num offset,
  String color,
);