Re: Re: any example EJSS of color change from Math.floor((Math.random()*255)+1) -
lookang
245 Posts
a) yes. it is the same request as http://www.compadre.org/osp/bulletinboard/TDetails.cfm?ViewType=2&TID=2457&CID=60085PID60089 in Java if (_isPaused()==true) { // assume _isPaused() can detect new runs
_view.voltageTrail.newSegment(); _view.coilZTrail.newSegment(); _view.coilVzTrail.newSegment(); _view.ForceTrailcoil.newSegment(); memorycolor++; // assume no more than runs selected (unique colors)new color 0,1,2,....
_view.magnetZTrail.newSegment(); _view.magnetVzTrail.newSegment(); _view.ForceTrailmagnet.newSegment(); memorycolormagnet++; // new color 10,11,12,....
} but it does not work for JavaScript. i eagerly await your exciting strategy to create newSegment() with different (random is easy) colors. thanks!
Re: Re: Re: Re: any example EJSS of color change from Math.floor((Math.random()*255)+1) -
lookang
245 Posts
dear prof paco,
i eagerly awaits bug fix to "_view.voltageTrail.newSegment();"
example of what i being trying to do https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_SHMxvaverticalsensorsecondary/SHMxvaverticalsensorsecondary_Simulation.xhtml
3 different run but not working as designed :)
the color seems to still to the new value source code attached