ImageDrawRectangle method
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,
),
),
);