Colorizer was a class-based thing but it doesn't really need to be,
because everything is colorized using palettes. If we need to use a
different style of colorization in the future, we will bring the
colorizer class back.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Add a simple JS port of colorhash for easier demonstration purposes. You
don't need to open a command line to create a colorhash, you can just
use the webpage.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Big oops on my part. The Randomart was looking a bit "same-y", and for a
good reason. The algorithm should be going in two-bit chunks at a time,
but I completely forgot to shift the bits over every time. This is added
now, huge mistake on my part whoopsie
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Usually you want to `git add` when you run gencommit.sh, so that has
been added.
Also, add ANSI output because I like to see what we're generating while
in the terminal.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
StaticPalette was not really being used besides as a list wrapper, so
that is removed. Palette type is getting some use in the rest of the
codebase, so I have redefined that type as a Sequence[str], becauase
that's basically what it is.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This is useful so we aren't wasting cycles generating examples that
don't need to be generated and we just cut to the chase
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
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 <alekratz@gmail.com>
Regenerating the fullsource hash was a bit tedious. Instead, it makes a
bit more sense to use the current commit hash as the header image. This
uses sha1 nibbleart.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>