aboutsummaryrefslogtreecommitdiff
path: root/pgm.h
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-03-09 18:34:24 +0100
committerJulian T <julian@jtle.dk>2020-03-09 18:34:24 +0100
commitc94c3930af8c81568be50bdfaaac321b99e296d7 (patch)
treef776896e941b64076bdd067829a6ca9323cc67f7 /pgm.h
parent7837a28251bc3b326423ba40ccac0c8ffe23f968 (diff)
Colors are floats now
Diffstat (limited to 'pgm.h')
-rw-r--r--pgm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgm.h b/pgm.h
index 3e40034..fbd7f73 100644
--- a/pgm.h
+++ b/pgm.h
@@ -6,11 +6,11 @@
#include "vector.h"
typedef struct {
- uint8_t r, g, b;
+ COORD_T r, g, b;
} color_t;
color_t *color_set(color_t *c, uint8_t r, uint8_t g, uint8_t b);
-color_t *color_scale(color_t *dest, color_t *a, float b);
+color_t *color_scale(color_t *dest, color_t *a, COORD_T b);
color_t *color_add(color_t *dest, color_t *a, color_t *b);
color_t *color_scale_vector(color_t *dest, color_t *a, vector_t *v);