colourpicker

Simple Colour Picker written in C
git clone anongit@rnpnr.xyz:colourpicker.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: c40f7191ab6ffff6c0f262d3ea1eadaeb5e0129f
Parent: 39439daf1fb758bfb87cb0a691e265eb94283868
Author: Randy Palamar
Date:   Mon, 10 Jun 2024 20:35:05 -0600

set a default colour

Diffstat:
Mmain.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -75,7 +75,9 @@ main(void) ctx.window_size = (uv2){.w = 720, .h = 960}; ctx.bg = (Color){ .r = 0x26, .g = 0x1e, .b = 0x22, .a = 0xff }; ctx.fg = (Color){ .r = 0xea, .g = 0xe1, .b = 0xb4, .a = 0xff }; - ctx.colour.a = 1.0; + ctx.colour = (v4){ .r = 0.53, .g = 0.82, .b = 0.59, .a = 1.0 }; + ctx.mode = CPM_HSV; + ctx.flags |= CPF_REFILL_TEXTURE; #ifndef _DEBUG SetTraceLogLevel(LOG_ERROR);