This also works and is much faster: convert -size 16x16 xc: +noise Random -scale 1000% random_colors2.gif
>"John Smith" on wrote... >| Hello again, ... thank you, that is wonderful. There were lots of very >| good examples and I had fun playing around with the tutorial. May I ask, >| there is one I would like to see, but didn't get a feel from the tutorial >| on how to do it. How could one make a checkerboard pattern, like the >| example under this line on that page: [[ If you want color the >"checkerboard" >| pattern, that is best done by first using "-normalize" to map the the two >| greys to black and white, before substituting those two colors. ]] .... >| but have each smaller tile of the checkerboard be a random color? Not >| quite like noise where its a spatter of colors, but perfectly aligned >| cubes each a different color, ... all tiled together neatly :) best >| wishes, Ant Lamp >| > >For random colors, that is much harder!!! You will need some type of >loop to either generate each square, OR to re-color each square. > >The former is probbaly a lot easier! > >Something like this under unix BASH shell.... > > for i in `seq 1 256`; do > R=$((RANDOM%255)) > G=$((RANDOM%255)) > B=$((RANDOM%255)) > convert -size 10x10 xc:"rgb($R,$B,$G)" miff:- > done | montage -mode Concatenate - random_colors.gif > >This generates 256 random colors (in RGB space), each a 10x10 square >The numbers are generated using the Bash random number generator. > >It then 'pipelines' all the images into a "montage" to 'concatenate' >them all together in a 16x16 square image. _______________________________________________ Magick-users mailing list Magick-users@imagemagick.org http://studio.imagemagick.org/mailman/listinfo/magick-users