PDA

View Full Version : random droplets of paint, any idea?



OMG
February 28th, 2010, 02:25 PM
Hi
first please take a look at this:
http://artpad.art.com/artpad/painter/
the bucket function generates random droplets of paint, I was wondering how it's possible to program it using AS. (Apparently they used pre-drawn shapes and changed their rotation, x and y scale)
(BTW, I want more circle-shaped droplets than the linear ones)

thanks

BoppreH
February 28th, 2010, 04:04 PM
I'm quite sure that they are using pre-drawn shapes. But they have a good reason.

I think the best way to generate random droplets would be drawing them with the graphics (http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Graphics.html)property. Drawing them is easy, the problem is which shapes to use to make it look real. That's a real challenge.

OMG
March 1st, 2010, 09:51 PM
thanks, here's a little update:
http://www.swfcabin.com/open/1267494824
(click it)

squeezed my brainjuice out to figure out a way to generate really random shapes but which still look like circles

glosrfc
March 3rd, 2010, 07:10 PM
http://stamen.com/projects/splatter