DrawRectangleGradientEx method

void DrawRectangleGradientEx(
  1. Rectangle rec,
  2. Color topLeft,
  3. Color bottomLeft,
  4. Color topRight,
  5. Color bottomRight,
)

Draw a gradient-filled rectangle with custom vertex colors

Implementation

void DrawRectangleGradientEx(
  Rectangle rec,
  Color topLeft,
  Color bottomLeft,
  Color topRight,
  Color bottomRight,
) => run(
  () => _debugLabels.DrawRectangleGradientEx(rec, topLeft, bottomLeft, topRight, bottomRight),
  () => _flat.DrawRectangleGradientEx(
    rec,
    topLeft,
    bottomLeft,
    topRight,
    bottomRight,
  ),
);