Generates a slightly-randomized, generative line art design based on a bg and fg parameters.
https://cgi.eccentric-j.com/lineart/lineart.svg?bg=000000&fg=ffffff
BG
Background color of the canvas any valid hex color string should work.
FG
Foreground color for lines. The script will lower their opacity to prevent the contrast from becoming distracting.
.generative-bg {
height: 100px;
background: url('https://cgi.eccentric-j.com/lineart/lineart.svg?bg=363333&fg=F3C581');
background-repeat: repeat-x;
}
Below is a saved response from the request, note that each request will look slightly different.
bb -cp src test/lineart.clj "bg=363333&fg=F3C581"
bb -cp src test/lineart.clj "bg=363333&fg=F3C581" > test/lineart.svg
Basically just a Clojure script over cgi that generates the SVG XML. More information is available at https://eccentric-j.com/blog/clojure-like-its-php.html.