Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

any example EJSS of color change from Math.floor((Math.random()*255)+1)

Return to the EJS Modeling forum
Login to post to this thread

any example EJSS of color change from Math.floor((Math.random()*255)+1) - Mar 27 at 11:22PM
lookang Avatar
lookang
118 Posts

any example EJSS of color change from Math.floor((Math.random()*255)+1)

i am trying to generate different color and different runs of the EJSS.

any easier method i can explore?

my current method used is not scalable. i have created arrays and make them visible when certain conditions are true. source: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_src_SHMresonance01.zip

http://weelookang.blogspot.sg/2014/03/ejss-shm-model-with-resonance-showing.html

any examples in EJSS for me to study?

thanks!

 

Post edited March 27, 2014 at 11:23 PM EST.

Post edited March 27, 2014 at 11:26 PM EST.

Attached File: yjcresonanance_2014-03-24_1340.png


http://weelookang.blogspot.sg

Current Replies - View all
Re: any example EJSS of c...   (Francisco Esquembre - Apr 1)
Re: Re: any example EJSS ...   (lookang - Apr 2)
Re: Re: Re: any example E...   (Francisco Esquembre - Apr 8)
Re: Re: Re: Re: any examp...   (lookang - Aug 19)
The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics