DrawRectangleGradientEx method

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

Draw a gradient-filled rectangle with custom vertex colors

Implementation

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