From 91ab3ae0147712b549e4ec086818f847fd23e12f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 22 Jan 2026 23:55:57 +0100 Subject: Add PPM simple image implementation --- examples/ppm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') 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)); -- cgit v1.2.3