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 --- tests.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests.c') diff --git a/tests.c b/tests.c index bca3a89..d9c5954 100644 --- a/tests.c +++ b/tests.c @@ -974,20 +974,20 @@ MU_TEST(test_ppm_draw_helpers) { Canvas img = ppm_init(100, 100); // Test fill - ppm_fill(&img, CLR_RED); + ppm_fill(&img, COLOR_RED); Color c1 = ppm_get_pixel(&img, 0, 0); mu_assert_int_eq(255, c1.r); mu_assert_int_eq(0, c1.g); // Test rect - ppm_fill(&img, CLR_BLACK); - ppm_draw_rect(&img, 10, 10, 20, 20, CLR_WHITE); + ppm_fill(&img, COLOR_BLACK); + ppm_draw_rect(&img, 10, 10, 20, 20, COLOR_WHITE); mu_assert_int_eq(255, ppm_get_pixel(&img, 10, 10).r); mu_assert_int_eq(0, ppm_get_pixel(&img, 15, 15).r); // Inside should be black // Test line - ppm_fill(&img, CLR_BLACK); - ppm_draw_line(&img, 0, 0, 10, 10, CLR_GREEN); + ppm_fill(&img, COLOR_BLACK); + ppm_draw_line(&img, 0, 0, 10, 10, COLOR_GREEN); mu_assert_int_eq(255, ppm_get_pixel(&img, 5, 5).g); // Test hexagon/color macros -- cgit v1.2.3