You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Generative Art in Go: httpd server and cli command line
Generate images (patterns) from a simple formula:
color = ( C - C * X * Y ) mod MAX
C is a constante, ``(X, Y)` coordinates and MAX the number of colors.
How to use
cmd line
To get help:
$ bin/genart -helpUsage of bin/genart: -colors int number of colors (default 216) -constant int constant for formula (c): c-c*x*y (default 10) -filename string filename to save image (.png) (default "formulaimg.png") -formula string formula to use (default "ccxy") -size int size of image (default 1000)
Generating an image:
$ make genart$ bin/genart -filename output.png -colors 100
http server
To get the same image from above cmd line example: