1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00
Aurelien Aptel 4a672bda22 XEP-0392: color: implement color hashing
* add the HSL values of each of the 256 terminal colors
* add color_pair_cache_hash_str()
* move common code to _color_pair_cache_get() helper func

after hashing a string to a color, return the closest matching
terminal color using euclidian distance of the HSL diff vector (this
method was found empirically and seems to work well enough...)
2019-12-03 21:10:39 +01:00
..
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00
2019-11-13 12:11:05 +01:00