zephr/ui: dynamically determine color picker buttons' text color and crosshairs selection's color

This commit is contained in:
2024-01-09 01:13:01 +02:00
parent 080f2f1aa4
commit 12626a513e
7 changed files with 67 additions and 19 deletions
+3
View File
@@ -56,3 +56,6 @@ void apply_translation(Matrix4x4 *matrix, Vec2f pos);
Matrix4x4 orthographic_projection_2d(float left, float right, float bottom, float top);
Color mult_color(Color color, float amount);
Color hsv2rgb(float h, float s, float v);
Color determine_color_contrast(Color *bg);
#define ColorRGBA(r, g, b, a) (Color){r, g, b, a}