APS Excellence in Physics Education Award
November 2019

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)
lookang Avatar
lookang
245 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


OSP@SG blog
OSP@SG Digital Library

Current Replies - View all
Re: any example EJSS of c...   (Francisco Esquembre - )
Re: Re: any example EJSS ...   (lookang - )
Re: Re: Re: any example E...   (Francisco Esquembre - )
Re: Re: Re: Re: any examp...   (lookang - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book