diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-11-15 18:45:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-11-15 18:45:33 +0000 |
| commit | e0297daa1fcf90a911fd236971e1a2b433f7b134 (patch) | |
| tree | d99cc1c9f9f90166a1e61ca23e9801242ba5609a /scripts/benchmark.py | |
| parent | render: remove debug output (diff) | |
hsl: add our own implementations of rgb-to-hsl and hsl-to-rgb
* New function: rgb_to_hsl()
* New function: hsl_to_rgb()
* Replace XTerm’s hls_to_rgb() with our own, hsl_to_rgb().
* Ensure hue/lum/sat values are within range before calling
hsl_to_rgb()
Note that sixels’ use the following primary hues:
* blue: 0°
* red: 120
* green: 240°
While “standard” HSL uses:
* red: 0°
* green: 120°
* blue: 240°
Thus, we need to adjust the sixel’s hue value before calling
hsl_to_rgb().
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions
