From 5b5c2444db29ff190efdd38ccf97f4593b13bd98 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Thu, 30 May 2024 12:27:27 -0700 Subject: [PATCH] Add a new "rainbow-reverse" palette for randomart This tries to add a bit more color distinction to the randomart algorithm. As it so happens, half of the randomart examples got converted to using the new palette, so that's a nice little win. Signed-off-by: Alek Ratzloff --- colorhash/palettes.py | 1 + examples/asdf-sha224-randomart.svg | 112 +++++++------- examples/asdf-sha384-randomart.svg | 220 ++++++++++++++-------------- examples/asdf-sha512-randomart.svg | 220 ++++++++++++++-------------- examples/commithash.svg | 84 +++++------ examples/empty-md5-randomart.svg | 84 +++++------ examples/empty-sha224-randomart.svg | 112 +++++++------- examples/empty-sha256-randomart.svg | 112 +++++++------- 8 files changed, 473 insertions(+), 472 deletions(-) diff --git a/colorhash/palettes.py b/colorhash/palettes.py index c14d3b3..9637ccd 100644 --- a/colorhash/palettes.py +++ b/colorhash/palettes.py @@ -150,6 +150,7 @@ GRADIENT_PALETTES = { MULTICOLOR_PALETTES = { "rainbow": StaticPalette(hsl_colors(range(0, 360), 100, 50)), + "rainbow-reverse": StaticPalette(list(reversed(hsl_colors(range(0, 360), 100, 50)))), } DEFAULT_PALETTES = { diff --git a/examples/asdf-sha224-randomart.svg b/examples/asdf-sha224-randomart.svg index 1451e35..e89fbfc 100644 --- a/examples/asdf-sha224-randomart.svg +++ b/examples/asdf-sha224-randomart.svg @@ -1,58 +1,58 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/asdf-sha384-randomart.svg b/examples/asdf-sha384-randomart.svg index 58ccf36..5a63304 100644 --- a/examples/asdf-sha384-randomart.svg +++ b/examples/asdf-sha384-randomart.svg @@ -1,112 +1,112 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/asdf-sha512-randomart.svg b/examples/asdf-sha512-randomart.svg index 91a76da..ff81244 100644 --- a/examples/asdf-sha512-randomart.svg +++ b/examples/asdf-sha512-randomart.svg @@ -1,112 +1,112 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/commithash.svg b/examples/commithash.svg index cc5b131..c9f3d75 100644 --- a/examples/commithash.svg +++ b/examples/commithash.svg @@ -1,44 +1,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/empty-md5-randomart.svg b/examples/empty-md5-randomart.svg index 8f0d9f3..1cf7408 100644 --- a/examples/empty-md5-randomart.svg +++ b/examples/empty-md5-randomart.svg @@ -1,44 +1,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/empty-sha224-randomart.svg b/examples/empty-sha224-randomart.svg index 7ed2607..419594a 100644 --- a/examples/empty-sha224-randomart.svg +++ b/examples/empty-sha224-randomart.svg @@ -1,58 +1,58 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/empty-sha256-randomart.svg b/examples/empty-sha256-randomart.svg index 8162a65..71d2831 100644 --- a/examples/empty-sha256-randomart.svg +++ b/examples/empty-sha256-randomart.svg @@ -1,58 +1,58 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file