abc fed ghi lkj mno rqp stu xwv yz.
Visit my Blog!
Draw randomly on a canvas. The resulting BMP image is dumped to stdout.
By default, randompaint draws white strokes on a black canvas, but
by supplying a list of colors to use instead (see below), you can make it draw
red, green or blue, too. The colors are used one after another in the order they
were supplied, starting from a random position on the canvas, and with each
color the specified amount of strokes is drawn. If the virtual pen reaches a pixel
that has already been painted before, it adds its own color values to the pixel's
values.
With the -l (small L) command line argument, you can specify the length of each stroke
that is drawn. Be surprised about the results you will get with a length of, say,
15 pixels on a rather small canvas (randompaint -l15)!
randompaint [-W width] [-H height] [-l length] [-s steps] [COLORS]
randompaint -h
-W image width (default: 320)
-H image height (default: 240)
-l length of strokes (default: 1, max. 32)
-s amount of strokes to draw with each color (default: 100000)
COLORS a list of colors to use one after another, possible values are
-r (red), -g (green), -b (blue), -w (white)
e.g. -bgr, -rg, -brb (default: -w, max. 64 colors)
$ randompaint -W200 -H150 -s50000 -rg | convert - rg.png
Copyright (c) 2005-2010 diozaka / Erik Scharwaechter <erik@diozaka.org>