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>
This commit is contained in:
2024-05-30 12:31:17 -07:00
parent 5b5c2444db
commit 19578536aa
2 changed files with 42 additions and 44 deletions

View File

@@ -1,44 +1,42 @@
<svg width="224" height="192" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="32" height="32" fill="hsl(168.00,100.00%,50.00%)" />
<rect x="32" y="0" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="64" y="0" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="96" y="0" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="128" y="0" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="160" y="0" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="192" y="0" width="32" height="32" fill="hsl(240.00,100.00%,50.00%)" />
<rect x="0" y="32" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="32" y="32" width="32" height="32" fill="hsl(288.00,100.00%,50.00%)" />
<rect x="64" y="32" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="96" y="32" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="128" y="32" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="160" y="32" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="192" y="32" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="0" y="64" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="32" y="64" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="64" y="64" width="32" height="32" fill="hsl(288.00,100.00%,50.00%)" />
<rect x="96" y="64" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="128" y="64" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="160" y="64" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="192" y="64" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="0" y="96" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="32" y="96" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="64" y="96" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="96" y="96" width="32" height="32" fill="hsl(288.00,100.00%,50.00%)" />
<rect x="128" y="96" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="160" y="96" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="192" y="96" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="0" y="128" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="32" y="128" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="64" y="128" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="96" y="128" width="32" height="32" fill="hsl(360.00,100.00%,50.00%)" />
<rect x="128" y="128" width="32" height="32" fill="hsl(288.00,100.00%,50.00%)" />
<rect x="160" y="128" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="192" y="128" width="32" height="32" fill="hsl(336.00,100.00%,50.00%)" />
<rect x="0" y="160" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="32" y="160" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="64" y="160" width="32" height="32" fill="hsl(288.00,100.00%,50.00%)" />
<rect x="96" y="160" width="32" height="32" fill="hsl(288.00,100.00%,50.00%)" />
<rect x="128" y="160" width="32" height="32" fill="hsl(312.00,100.00%,50.00%)" />
<rect x="160" y="160" width="32" height="32" fill="hsl(288.00,100.00%,50.00%)" />
<rect x="192" y="160" width="32" height="32" fill="hsl(0.00,100.00%,50.00%)" />
<svg width="256" height="160" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="32" height="32" fill="hsl(240.00,100.00%,67.00%)" />
<rect x="32" y="0" width="32" height="32" fill="hsl(240.00,100.00%,87.00%)" />
<rect x="64" y="0" width="32" height="32" fill="hsl(240.00,100.00%,67.00%)" />
<rect x="96" y="0" width="32" height="32" fill="hsl(240.00,100.00%,90.00%)" />
<rect x="128" y="0" width="32" height="32" fill="hsl(240.00,100.00%,57.00%)" />
<rect x="160" y="0" width="32" height="32" fill="hsl(240.00,100.00%,63.00%)" />
<rect x="192" y="0" width="32" height="32" fill="hsl(240.00,100.00%,63.00%)" />
<rect x="224" y="0" width="32" height="32" fill="hsl(240.00,100.00%,63.00%)" />
<rect x="0" y="32" width="32" height="32" fill="hsl(240.00,100.00%,93.00%)" />
<rect x="32" y="32" width="32" height="32" fill="hsl(240.00,100.00%,87.00%)" />
<rect x="64" y="32" width="32" height="32" fill="hsl(240.00,100.00%,57.00%)" />
<rect x="96" y="32" width="32" height="32" fill="hsl(240.00,100.00%,80.00%)" />
<rect x="128" y="32" width="32" height="32" fill="hsl(240.00,100.00%,100.00%)" />
<rect x="160" y="32" width="32" height="32" fill="hsl(240.00,100.00%,100.00%)" />
<rect x="192" y="32" width="32" height="32" fill="hsl(240.00,100.00%,53.00%)" />
<rect x="224" y="32" width="32" height="32" fill="hsl(240.00,100.00%,80.00%)" />
<rect x="0" y="64" width="32" height="32" fill="hsl(240.00,100.00%,50.00%)" />
<rect x="32" y="64" width="32" height="32" fill="hsl(240.00,100.00%,97.00%)" />
<rect x="64" y="64" width="32" height="32" fill="hsl(240.00,100.00%,100.00%)" />
<rect x="96" y="64" width="32" height="32" fill="hsl(240.00,100.00%,93.00%)" />
<rect x="128" y="64" width="32" height="32" fill="hsl(240.00,100.00%,93.00%)" />
<rect x="160" y="64" width="32" height="32" fill="hsl(240.00,100.00%,60.00%)" />
<rect x="192" y="64" width="32" height="32" fill="hsl(240.00,100.00%,77.00%)" />
<rect x="224" y="64" width="32" height="32" fill="hsl(240.00,100.00%,90.00%)" />
<rect x="0" y="96" width="32" height="32" fill="hsl(240.00,100.00%,90.00%)" />
<rect x="32" y="96" width="32" height="32" fill="hsl(240.00,100.00%,100.00%)" />
<rect x="64" y="96" width="32" height="32" fill="hsl(240.00,100.00%,80.00%)" />
<rect x="96" y="96" width="32" height="32" fill="hsl(240.00,100.00%,73.00%)" />
<rect x="128" y="96" width="32" height="32" fill="hsl(240.00,100.00%,100.00%)" />
<rect x="160" y="96" width="32" height="32" fill="hsl(240.00,100.00%,63.00%)" />
<rect x="192" y="96" width="32" height="32" fill="hsl(240.00,100.00%,67.00%)" />
<rect x="224" y="96" width="32" height="32" fill="hsl(240.00,100.00%,80.00%)" />
<rect x="0" y="128" width="32" height="32" fill="hsl(240.00,100.00%,60.00%)" />
<rect x="32" y="128" width="32" height="32" fill="hsl(240.00,100.00%,87.00%)" />
<rect x="64" y="128" width="32" height="32" fill="hsl(240.00,100.00%,53.00%)" />
<rect x="96" y="128" width="32" height="32" fill="hsl(240.00,100.00%,60.00%)" />
<rect x="128" y="128" width="32" height="32" fill="hsl(240.00,100.00%,87.00%)" />
<rect x="160" y="128" width="32" height="32" fill="hsl(240.00,100.00%,93.00%)" />
<rect x="192" y="128" width="32" height="32" fill="hsl(240.00,100.00%,80.00%)" />
<rect x="224" y="128" width="32" height="32" fill="hsl(240.00,100.00%,77.00%)" />
</svg>

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -23,4 +23,4 @@ done
# Additionally, create an SVG for the current commit hash
echo "Generating examples/commithash.svg"
python3 -m colorhash "$(git rev-parse HEAD)" --input-type hash --hash sha1 --matrix randomart --output-type svg --out examples/commithash.svg
python3 -m colorhash "$(git rev-parse HEAD)" --input-type hash --hash sha1 --output-type svg --out examples/commithash.svg