Re: April Showers Bring May Flowers - raindrop advice please

2011-04-03 Thread carinmeier
You are exactly right! Thank you! On Apr 3, 8:27 pm, Sean Corfield wrote: > On Sun, Apr 3, 2011 at 4:31 PM, carinmeier wrote: > >  (let [rainagents (vec (repeat num-raindrops (agent nil)))] > > Wouldn't that create a vector with N copies of the same agent? > > Try:

Re: April Showers Bring May Flowers - raindrop advice please

2011-04-03 Thread carinmeier
))) rainagents On Apr 3, 5:15 pm, Ken Wesson wrote: > On Sun, Apr 3, 2011 at 5:10 PM, carinmeier wrote: > > I am experimenting with Java Graphics and Clojure.  I made a Gist that > > draws a frame with some text, grass and raindrops falling.  I made a > > function that draws a

April Showers Bring May Flowers - raindrop advice please

2011-04-03 Thread carinmeier
I am experimenting with Java Graphics and Clojure. I made a Gist that draws a frame with some text, grass and raindrops falling. I made a function that draws a raindrop falling and I created agents to send off the drawing of the raindrop. I then called pmap to send-off the agents to the draw-rai