Page 1 of 1

Create random geometric shapes

Posted: 2013-09-25T16:09:52-07:00
by hellocatfood
Is it possible to use ImageMagick (on Linux) to create random geometric shapes, like the ones below?

Image

Ideally I'd want to be able to run a script and each time it create an image with a different shape in it. Can this be done?

Re: Create random geometric shapes

Posted: 2013-09-25T16:48:21-07:00
by snibgo
Yes. Perhaps you want to pick one out of a number of fixed images. Or one of a number of templates, each of which might have a number of random parameters. Or something else.

Re: Create random geometric shapes

Posted: 2013-09-25T16:51:40-07:00
by fmw42
If on Linux, Mac OSX or Windows w/Cygwin, you may be interested in my script randomblob at the link below. Otherwise, you would either have to have a large selection of pre-prepared images to choose randomly or script some kind of random line drawing with the -draw command.

see
http://www.imagemagick.org/Usage/draw/

I do something very simple like that in my captcha script to draw random numbers (text) and random lines through the text.