summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/textures/textures_image_drawing.c5
-rw-r--r--examples/textures/textures_image_drawing.pngbin420135 -> 239413 bytes
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/textures/textures_image_drawing.c b/examples/textures/textures_image_drawing.c
index 02caf1f9..767db2d0 100644
--- a/examples/textures/textures_image_drawing.c
+++ b/examples/textures/textures_image_drawing.c
@@ -35,6 +35,11 @@ int main(void)
ImageDraw(&parrots, cat, (Rectangle){ 0, 0, cat.width, cat.height }, (Rectangle){ 30, 40, cat.width*1.5f, cat.height*1.5f }, WHITE);
ImageCrop(&parrots, (Rectangle){ 0, 50, parrots.width, parrots.height - 100 }); // Crop resulting image
+ // Draw on the image with a few image draw methods
+ ImageDrawPixel(&parrots, 10, 10, RAYWHITE);
+ ImageDrawCircle(&parrots, 10, 10, 5, RAYWHITE);
+ ImageDrawRectangle(&parrots, 5, 20, 10, 10, RAYWHITE);
+
UnloadImage(cat); // Unload image from RAM
// Load custom font for frawing on image
diff --git a/examples/textures/textures_image_drawing.png b/examples/textures/textures_image_drawing.png
index acfee069..b8107bdc 100644
--- a/examples/textures/textures_image_drawing.png
+++ b/examples/textures/textures_image_drawing.png
Binary files differ