From 71cf881305926f792862d15844d23ca1a1c8a2e8 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Fri, 2 Aug 2024 10:28:52 -0700 Subject: [PATCH] Update README to include note about palette selection Signed-off-by: Alek Ratzloff --- README.md | 8 +++++ examples/commithash.svg | 80 ++++++++++++++++++++--------------------- 2 files changed, 48 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 864dc0d..a3f0157 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,14 @@ same color palette, for example. Additionally, if this is appearing on a webpage override the most recent version of the file; this has happened with me and Chrome looking at the Github page for this project. +Palette selection is questionable. It's mostly based on the hash itself, but the colors chosen are +sort of arbitrary, and certain color profiles are omitted based on the author's personal taste. For +example, the color palette for "light yellow" is omitted because it's hard to look at and +distinguish, while dark yellow is kept because it doesn't have that problem. If palettes are ever +removed or added in the future, this will have a cascading effect on palette selection, since this +is done by taking the sum of all of the bytes in the hash mod the number of palettes available. As +the software evolves, a colorhash made 5 years ago may have a different look today. + # Examples See the examples directory. diff --git a/examples/commithash.svg b/examples/commithash.svg index 97a148e..82950b7 100644 --- a/examples/commithash.svg +++ b/examples/commithash.svg @@ -1,42 +1,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file