Command line that generates SVG images based on a grid of squares with increasing disorder. The idea is inspired by "Schotter" from Georg Nees, one of the earliest known examples of computer generated art.
The SVG image is written to stdout, redirect it to a file:
zig build --release=fast run -- <pattern> <palette> > output.svgpatternis one ofschotter,drifted_echoes,drifted_square(default:schotter)paletteis one ofbeige,blue(default:beige)
For example:
zig build --release=fast run -- drifted_echoes blue > drifted_echoes.svgWe use :
- Zig : 0.16.0
- zpp : SIMD low level processing library.
- zyra : command line argument parsing.
- zsvg : SVG generation.
zig buildIt's a fun project. So if you spot error, improvement comments are welcome.