summaryrefslogtreecommitdiff
path: root/examples/ppm.c
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 23:55:57 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 23:55:57 +0100
commit91ab3ae0147712b549e4ec086818f847fd23e12f (patch)
tree7b2dae9f288e1f7c6b3dc7c0101b4651fd0cf85d /examples/ppm.c
parent3c62d3d54244731b641952bd7e93edbab16d5d79 (diff)
downloadnonstd-91ab3ae0147712b549e4ec086818f847fd23e12f.tar.gz
Add PPM simple image implementation
Diffstat (limited to 'examples/ppm.c')
-rw-r--r--examples/ppm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/ppm.c b/examples/ppm.c
index 95fafcf..6edd1d7 100644
--- a/examples/ppm.c
+++ b/examples/ppm.c
@@ -10,10 +10,10 @@ int main() {
ppm_fill(&img, COLOR_HEX(0x1a1a1a));
// Draw some shapes
- ppm_draw_rect(&img, 50, 50, 100, 100, CLR_RED);
- ppm_draw_circle(&img, 250, 100, 40, CLR_BLUE);
- ppm_draw_triangle(&img, 50, 350, 150, 350, 100, 250, CLR_YELLOW);
- ppm_draw_line(&img, 200, 200, 350, 350, CLR_GREEN);
+ ppm_draw_rect(&img, 50, 50, 100, 100, COLOR_RED);
+ ppm_draw_circle(&img, 250, 100, 40, COLOR_BLUE);
+ ppm_draw_triangle(&img, 50, 350, 150, 350, 100, 250, COLOR_YELLOW);
+ ppm_draw_line(&img, 200, 200, 350, 350, COLOR_GREEN);
// Random colors and macros
ppm_draw_rect(&img, 200, 250, 50, 80, COLOR_RGB(255, 165, 0));