10binary on DeviantArthttps://www.deviantart.com/10binary/art/72-circle-target-black-white-24465666510binary

Deviation Actions

10binary's avatar

72 circle target black white

By
Published:
371 Views

Description

I needed a faster way to create these circle targets. I wrote this script which made this image.

#!/bin/sh
echo "<?xml version=\"1.0\" standalone=\"no\"?>"
echo "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\""
echo "\"[link]\">"
echo "<svg width=\"720\" height=\"720\" version=\"1.1\""
echo "xmlns=\"[link]\">"

#define colors
pal[0]=#000000
pal[1]=#FFFFFF

((r=360))
((fill=0))
while (( r > 0 ))
do
echo "<circle cx=\"360\" cy=\"360\" r=\"$r\" fill=\"${pal[$fill]}\"/>"
((r=r-5))
((fill=($fill+1)%2))
done

echo "</svg>"
exit
Image size
720x720px 281.93 KB
© 2011 - 2024 10binary
Comments2
Join the community to add your comment. Already a deviant? Log In
hotxhotguy's avatar