addColorStop method

Brush addColorStop(
  1. num loc,
  2. String color
)

Specify a particular color at a particular fraction of the distance. If the #type is Brush.Solid, change the type to Brush.Linear. You should not have duplicate color stop values at the same fractional distance. @param {number} loc A number between 0 and 1 (inclusive). @param {string} color A valid CSS color string. @return {Brush} this Brush

Implementation

_i3.Brush addColorStop(
  _i2.num loc,
  _i2.String color,
) =>
    _i4.callMethod(
      this,
      'addColorStop',
      [
        loc,
        color,
      ],
    );