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