Is it possible to use ImageMagick (on Linux) to create random geometric shapes, like the ones below?
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?
Create random geometric shapes
- hellocatfood
- Posts: 44
- Joined: 2010-01-01T13:29:41-07:00
- Authentication code: 8675309
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Create random geometric shapes
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.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Create random geometric shapes
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.
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.