DrawRectangle method
Draw a color-filled rectangle
Implementation
void DrawRectangle(
num posX,
num posY,
num width,
num height,
ColorD color,
) => run(
() => _debugLabels.DrawRectangle(posX, posY, width, height, color),
() => _flat.DrawRectangle(
posX.toInt(),
posY.toInt(),
width.toInt(),
height.toInt(),
color,
),
);