ImageDrawRectangle method

void ImageDrawRectangle(
  1. ImageD dst,
  2. num posX,
  3. num posY,
  4. num width,
  5. num height,
  6. ColorD color,
)

Implementation

void ImageDrawRectangle(
  ImageD dst,
  num posX,
  num posY,
  num width,
  num height,
  ColorD color,
) => run(
  () => 'ImageDrawRectangle($dst, $posX, $posY, $width, $height, $color)',
  () => rl.Temp.Image$.RefUpdate1(dst,
    (p) => rl.Core.ImageDrawRectangle(
      p,
      posX.toInt(),
      posY.toInt(),
      width.toInt(),
      height.toInt(),
      rl.Temp.Color$.Ref1(color).ref,
    ),
  ),
);