DrawRectangle method

void DrawRectangle(
  1. num posX,
  2. num posY,
  3. num width,
  4. num height,
  5. ColorD color,
)

Implementation

void DrawRectangle(
  num posX,
  num posY,
  num width,
  num height,
  ColorD color,
) => run(
  () => 'DrawRectangle($posX, $posY, $width, $height, $color)',
  () => rl.Core.DrawRectangle(
    posX.toInt(),
    posY.toInt(),
    width.toInt(),
    height.toInt(),
    rl.Temp.Color$.Ref1(color).ref,
  ),
);