Commit Graph

8 Commits

Author SHA1 Message Date
2726f2d80f Add tools/gencommit.sh which will only generate the commithash SVG
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>
2024-05-30 12:35:38 -07:00
19578536aa Update commithash example to use nibbleart instead of randomart
I just like how it looks a little better

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-05-30 12:31:17 -07:00
43e99e15bb Add png generation back in (using the imagemagick convert tool), add png files to gitignore
This is so we aren't committing binary data to the git repository if
that data may get updated in the future because I decide to make changes
to algorithms, palettes, etc. It's still nice to get the png files
generated so they can stay.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-05-30 12:26:08 -07:00
87af541cc4 Remove fullsource and use the current (previous) commit hash instead
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>
2024-05-30 12:22:58 -07:00
a28a39a63f Comment out PNG generation in tools/genexamples.sh
We don't reeeeaaaaally need PNG files for this, plus if we include PNGs
it will make the repository unwieldy and annoying.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-05-30 11:55:54 -07:00
782c1fc8d1 Add full source code to example generation
This will just do a `cat` of all Python files in the colorhash/
directory and shove it into a fullsource.in file.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-05-30 11:49:42 -07:00
ad014b4ea4 Add ANSI color output, set that as the default
ANSI-based color output is available and now the default. Add a
-y / --output-type argument to select SVG or ANSI output. Also update
tools/genexamples.sh to use the SVG output type.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-05-30 11:38:33 -07:00
4a9225d27f Add a tool that will generate examples using all matrix and hash options
This tool will go through the examples directory and generate an image
for all *.in files using every hash and matrix option.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-05-22 10:57:36 -07:00