DrawRectangleGradientH method

void DrawRectangleGradientH(
  1. num posX,
  2. num posY,
  3. num width,
  4. num height,
  5. ColorD left,
  6. ColorD right,
)

Draw a horizontal-gradient-filled rectangle

Implementation

void DrawRectangleGradientH(
  num posX,
  num posY,
  num width,
  num height,
  ColorD left,
  ColorD right,
) => run(
  () => _debugLabels.DrawRectangleGradientH(posX, posY, width, height, left, right),
  () => _flat.DrawRectangleGradientH(
    posX.toInt(),
    posY.toInt(),
    width.toInt(),
    height.toInt(),
    left,
    right,
  ),
);