fillRightLeftGradient method

void fillRightLeftGradient(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
  5. PColor colorFrom,
  6. PColor colorTo,
)

Fill a rectangle (x,y , width x height) with a right left linear gradient. See fillLeftRightGradient.

Implementation

void fillRightLeftGradient(num x, num y, num width, num height,
        PColor colorFrom, PColor colorTo) =>
    fillLeftRightGradient(x, y, width, height, colorTo, colorFrom);