diff options
author | omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-25 23:29:18 +1100 |
---|---|---|
committer | omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-25 23:29:18 +1100 |
commit | 9e120a48438c793e8f23fab000189d4af1068eee (patch) | |
tree | 72d800f375f8a41dd2359f470cea33b3296faef6 /src/colours.h | |
parent | 8752fe1132f0fb19a7ac90dd257417a088e32100 (diff) |
clearing the screen with a clear color!
Diffstat (limited to 'src/colours.h')
-rw-r--r-- | src/colours.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/colours.h b/src/colours.h index bbd9476..fa5f54b 100644 --- a/src/colours.h +++ b/src/colours.h @@ -12,6 +12,8 @@ typedef struct rgba { #define COLOUR_SEA_GREEN ((rgba){ 0.18, 0.77, 0.71, 1.0 }) #define COLOUR_WHITE ((rgba){ 1.0, 1.0, 1.0, 1.0 }) +#define rgba_to_vec4(color) (vec4(color.r, color.g, color.b, color.a)) + // Thanks ChatGPT #define STONE_50 ((rgba){ 0.980, 0.980, 0.976, 1.0 }) #define STONE_100 ((rgba){ 0.961, 0.961, 0.957, 1.0 }) |