From 7878aa1d455ab24d0336fc68eb09f726bcba10b2 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 4 Mar 2014 01:07:22 +0100 Subject: Now faster. And with more Jenny Holzer. --- host/color.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'host/color.h') diff --git a/host/color.h b/host/color.h index 1fbfe57..2a9d345 100644 --- a/host/color.h +++ b/host/color.h @@ -6,12 +6,13 @@ /* 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; -- cgit