[quote author=frodo link=topic=178.msg9145#msg9145 date=1334775192]
Lookang,

I like what you have done to the brownian motion applet. I was wondering if you could help me make an additional modification. I am trying to increase the number of Particle[0] to an array size so that the user can input a number of "yellow" particles say from 1 to 20 particles. I am having a difficult time doing this for I am a novice at the coding part of ejs.

Thank you for any help or insight you can give me.

Thanks

jake
[/quote]

done!
the extra codes are:
// set
for (int counter=0; counter pxset[counter]=  x[counter];
 pyset[counter]=  y[counter];
}

the rest is easily to figure out when you are inside EJS right?
hope this is what you need :)
enjoy!

my blog has the entry too
http://weelookang.blogspot.com/2010/06/ejs-open-source-brownian-motion-gas.html