From 8f2d85aa019f089b6946f3b9e0355ce59b12b67a Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 27 Dec 2025 16:00:54 -0700 Subject: Buildings going well --- src/utils.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 02d7388..22ed7b4 100644 --- a/src/utils.c +++ b/src/utils.c @@ -34,4 +34,15 @@ Vector3 randomDirection3(int seed, int* nextSeed) return Vector3Normalize(direction); } +Image colorsToImage(Color* colors, int width, int height) +{ + return (Image){ + .data = colors, + .width = width, + .height = height, + .format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8, + .mipmaps = 1 + }; +} + // Why does the universe feel strange to exist in? -- cgit v1.2.3