This is the web version of EJS interface
EJS version 4.3.7
  1. Author=Fu-Kwun Hwang - Professor
  2. Abstract=http://www.phy.ntnu.edu.tw/ntujava/
  3. CaptureTools=false
  4. DataTools=false
  5. LanguageTools=false
  6. EmersionSupport=false
  7. AppletColSupport=false
  8. UseInterpreter=true
  9. DetectedFiles=./eyeanatomy.gif;
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    dc=cm*2/n; c=cm; d=rm*Math.cos(cm); if(Math.abs(rg)<2){ if(rg>0)rg=2; else rg=-2; } cg=Math.asin(cst/rg); c2=cg; dc2=cg*2/n; d2=rg*Math.cos(cg); if(rg>0)d3=0; else d3=rg*(1-Math.cos(cg)); if(glasson)gcst=1; else gcst=0; for(int i=0;i<n;i++){ c=cm-i*dc; xn[i]=-d+rm*Math.cos(c); yn[n2-i-1]=yn[i]=rm*Math.sin(c); xn[n2-i-1]=-xn[i]; c2=cg-i*dc2; xn2[i]=-d2+rg*Math.cos(c2)-d3; xn2[n2-i-1]=d3-xn2[i]; yn2[n2-i-1]=yn2[i]=rg*Math.sin(c2); } for(int i=0;i<nl;i++){ yl[i]=ymin+i*dy; yl2[i]=2*(y1-yl[i])*(1+2*(cm-cm0));//Math.atan(1/rg) }

    FixRel Page

    Array
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double
    title="Frame"
    layout=border
    visible=true
    location="-53,45"
    size="806,473"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=-1.0
    maximumX=1.0
    minimumY=-1.0
    maximumY=1.0
    square=true
    background=WHITE
    x=xec
    trueSize=true
    imageFile="./eyeanatomy.gif"
    numberOfElements=nl
    x=xl
    y=yl
    sizeX=-L
    sizeY=0
    lineColor=RED
    numberOfElements=nl
    x=xl
    y=yl
    sizeX=L2*(1-gcst*Math.atan(1/rg)/pi/2.)
    sizeY=yl2
    lineColor=BLUE
    xData=xn
    yData=yn
    x=x1
    y=y1
    fillColor=BLUE
    xData=xn2
    yData=yn2
    x=x2
    y=y1
    visible=glasson
    enabledPosition=ENABLED_ANY
    fillColor=YELLOW
    position=south
    layout=HBOX
    borderType=LOWERED_ETCHED
    layout=HBOX
    variable=cm
    minimum=cm1
    maximum=cm2
    format="cm=0.00"
    dragaction=_initialize()
    variable=glasson
    text="glass"
    variable=rg
    minimum=-10
    maximum=10
    format="rg=0.00"
    enabled=glasson
    dragaction=_initialize()
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()