diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 20:18:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 20:18:55 +0000 |
| commit | f96eb5ff074dff8c9c9dce63886a94875604901c (patch) | |
| tree | 707abc7215660c74225b760d1a1ff26aef73ea4a /sixel-hls.h | |
| parent | sixel: add comments to max_width()/max_height() (diff) | |
sixel: add HLS color format support
Diffstat (limited to 'sixel-hls.h')
| -rw-r--r-- | sixel-hls.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |
