From 5a8a8b0d20f8bfc3c642bb66757b474b2724d5bd Mon Sep 17 00:00:00 2001 From: Bleawu Date: Wed, 8 Apr 2026 09:52:00 +0530 Subject: [PATCH] Add color assignment for buildings in 2D camera Haven't come across Color initialization in C or Raylib till now. --- examples/core/core_2d_camera.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/core/core_2d_camera.c b/examples/core/core_2d_camera.c index 7e5a14a70..907edbac0 100644 --- a/examples/core/core_2d_camera.c +++ b/examples/core/core_2d_camera.c @@ -45,6 +45,7 @@ int main(void) spacing += (int)buildings[i].width; + //(Color){ Red, Blue, Green, Alpha } buildColors[i] = (Color){ (unsigned char)GetRandomValue(200, 240), (unsigned char)GetRandomValue(200, 240),