From f96eb5ff074dff8c9c9dce63886a94875604901c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 22 Feb 2020 21:18:55 +0100 Subject: sixel: add HLS color format support --- sixel-hls.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sixel-hls.h (limited to 'sixel-hls.h') diff --git a/sixel-hls.h b/sixel-hls.h new file mode 100644 index 00000000..6d6b9f2f --- /dev/null +++ b/sixel-hls.h @@ -0,0 +1,9 @@ +#pragma once + +/* + * Primary color hues: + * blue: 0 degrees + * red: 120 degrees + * green: 240 degrees + */ +int hls_to_rgb(int hue, int lum, int sat); -- cgit v1.3