Commit 44aa8b181510b9770fa4385b42cafb653174ebc3

Thomas de Grivel 2023-12-04T01:51:04

demo: bg_rect: change ordering of colors to end on black

diff --git a/libc3/window/cairo/demo/bg_rect.c b/libc3/window/cairo/demo/bg_rect.c
index 4a4dec8..d53f0f8 100644
--- a/libc3/window/cairo/demo/bg_rect.c
+++ b/libc3/window/cairo/demo/bg_rect.c
@@ -28,14 +28,14 @@ bool bg_rect_render (s_sequence *seq, s_window_cairo *window,
 {
 #define C3_WINDOW_CAIRO_DEMO_BG_RECT_COLOR_MAX 8
   const s_rgb color[C3_WINDOW_CAIRO_DEMO_BG_RECT_COLOR_MAX] = {
-    {1, 1, 1},
+    {0, 0, 0},
     {1, 0, 0},
     {1, 1, 0},
     {0, 1, 0},
     {0, 1, 1},
     {0, 0, 1},
     {1, 0, 1},
-    {0, 0, 0}
+    {1, 1, 1}
   };
   u8 c1;
   u8 c2;
diff --git a/libc3/window/sdl2/demo/bg_rect.c b/libc3/window/sdl2/demo/bg_rect.c
index e0284a0..6802a2d 100644
--- a/libc3/window/sdl2/demo/bg_rect.c
+++ b/libc3/window/sdl2/demo/bg_rect.c
@@ -30,14 +30,14 @@ bool bg_rect_render (s_sequence *seq, s_window_sdl2 *window,
   (void) window;
 #define BG_RECT_COLOR_MAX 8
   const s_rgb color[BG_RECT_COLOR_MAX] = {
-    {1, 1, 1},
+    {0, 0, 0},
     {1, 0, 0},
     {1, 1, 0},
     {0, 1, 0},
     {0, 1, 1},
     {0, 0, 1},
     {1, 0, 1},
-    {0, 0, 0}
+    {1, 1, 1}
   };
   u8 c1;
   u8 c2;