sixel: add HLS color format support

This commit is contained in:
Daniel Eklöf 2020-02-22 21:18:55 +01:00
parent 7985cefd65
commit f96eb5ff07
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 132 additions and 2 deletions

9
sixel-hls.h Normal file
View file

@ -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);