DrawRectanglePro method

void DrawRectanglePro(
  1. RectangleD rec,
  2. Vector2D origin,
  3. num rotation,
  4. ColorD color,
)

Draw a color-filled rectangle with pro parameters

Implementation

void DrawRectanglePro(
  RectangleD rec,
  Vector2D origin,
  num rotation,
  ColorD color,
) => run(
  () => _debugLabels.DrawRectanglePro(rec, origin, rotation, color),
  () => _flat.DrawRectanglePro(
    rec,
    origin,
    rotation.toDouble(),
    color,
  ),
);