DrawRectangleRounded method

void DrawRectangleRounded(
  1. RectangleD rec,
  2. num roundness,
  3. num segments,
  4. ColorD color,
)

Draw rectangle with rounded edges

Implementation

void DrawRectangleRounded(
  RectangleD rec,
  num roundness,
  num segments,
  ColorD color,
) => run(
  () => _debugLabels.DrawRectangleRounded(rec, roundness, segments, color),
  () => _flat.DrawRectangleRounded(
    rec,
    roundness.toDouble(),
    segments.toInt(),
    color,
  ),
);