diff options
author | jaseg <jaseg@jaseg.net> | 2014-03-04 22:49:48 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2014-03-04 22:49:48 +0100 |
commit | 8f86c5ac4576b36aff906b91e194e68eb343c536 (patch) | |
tree | 228749e6d71fd247a61c16c5bbad0c2c86a2ef0d /host/color.h | |
parent | c4dd54e16fcc31c43c2ccccbb34eea07b9de735c (diff) | |
parent | 7878aa1d455ab24d0336fc68eb09f726bcba10b2 (diff) | |
download | matelight-8f86c5ac4576b36aff906b91e194e68eb343c536.tar.gz matelight-8f86c5ac4576b36aff906b91e194e68eb343c536.tar.bz2 matelight-8f86c5ac4576b36aff906b91e194e68eb343c536.zip |
Merge branch 'master' of matelight:matelight
Diffstat (limited to 'host/color.h')
-rw-r--r-- | host/color.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/host/color.h b/host/color.h index 1fbfe57..2a9d345 100644 --- a/host/color.h +++ b/host/color.h @@ -6,13 +6,14 @@ /* For easier memsetting we use an inverted alpha channel, i.e. 0 ≘ fully opaque; 255 ≘ fully transparent */ typedef struct { - uint8_t r; - uint8_t g; - uint8_t b; - uint8_t a; + uint8_t r, g, b, a; } color_t; typedef struct { + uint8_t r, g, b; +} rgb_t; + +typedef struct { color_t *data; size_t w; size_t h; |