diff options
| author | nathan <nathansmith@disroot.org> | 2025-12-27 23:00:54 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-12-27 23:00:54 +0000 |
| commit | 8f2d85aa019f089b6946f3b9e0355ce59b12b67a (patch) | |
| tree | ac26c36f4c41f21641cf2786d740567413cd6ac5 /src/utils.c | |
| parent | c6096a028d57da1026aa86ac215ea2f07461cd96 (diff) | |
| download | FindThings-8f2d85aa019f089b6946f3b9e0355ce59b12b67a.tar.gz FindThings-8f2d85aa019f089b6946f3b9e0355ce59b12b67a.tar.bz2 FindThings-8f2d85aa019f089b6946f3b9e0355ce59b12b67a.zip | |
Buildings going well
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
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? |
