This is the web version of EJS interface
EJS version 4.3.3.3
  1. Author=Fu-Kwun Hwang - Dept. of Physics,National Taiwan normal Univ.
  2. Abstract=http://www.phy.ntnu.edu.tw/ntnujava/ hwang@phy.ntnu.edu.tw
  3. CaptureTools=true
  4. DataTools=false
  5. LanguageTools=true
  6. EmersionSupport=false
  7. AppletColSupport=false
  8. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    id=0; _setFPS(fps);

    Evol Page

    Indep. Var. Increment
    SolverRungeKutta AbsoluteTolerance=0.00001

    FixRel Page

    id++; if(_isPlaying()){ if(id%3==0)rv=true; else rv=false; if(id%3==1)gv=true; else gv=false; if(id%3==2)bv=true; else bv=false; }else{ rv=gv=bv=true; }

    dvalue

    double dv; public double dvalue (double v) { if(v>0)dv=0.5; else if(v<0)dv=-0.5; else dv=0; return (int)(v*100+dv)/100.; }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    int
    title="Frame"
    layout=border
    visible=true
    size="543,476"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    background=BLACK
    x=x1
    y=y1
    sizeX=size
    sizeY=size
    visible=rv
    enabledPosition=ENABLED_ANY
    lineColor=RED
    fillColor=RED
    x=x2
    y=y2
    sizeX=size
    sizeY=size
    visible=gv
    enabledPosition=ENABLED_ANY
    lineColor=GREEN
    fillColor=GREEN
    x=x3
    y=y3
    sizeX=size
    sizeY=size
    visible=bv
    enabledPosition=ENABLED_ANY
    lineColor=BLUE
    fillColor=BLUE
    position=south
    layout=border
    position=east
    layout=HBOX
    borderType=LOWERED_ETCHED
    variable=_isPaused
    imageOn=/org/opensourcephysics/resources/controls/images/play.gif
    actionOn=_play()
    imageOff=/org/opensourcephysics/resources/controls/images/pause.gif
    actionOff=_pause()
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    position=center
    layout=HBOX
    variable=fps
    minimum=1
    maximum=50
    format="fps=0"
    dragaction=_setFPS(fps)