Exoplanet Orbit Diagram
 exoplanetOrbitDiagram007view, link (10 KB, 300×300) source (50.5 KB)Thu, 5 Oct 06, 10:50pm UTC 
 

New flashvars:

  • animate - boolean to control whether the diagram is animated; default is false
  • period - the period of the animation in seconds; default is 5
  • showStarDirectionArrow, showPlanetDirectionArrow - these booleans can be used to toggle the visibility of the direction arrows individually (they are parsed after showDirectionArrows, so thier value(s) dominate); the default is to show the arrows
  • showEarthArrow - boolean to show/hide the earth direction arrow; the default is true
  • perimeterLabels - this comma/semicolon delimited list adds labels around the perimeter; the format is the same as for starLabels and planetLabels below, except that the angle is measured ccw from left (like the earth arrow angle); these labels will rotate with the earthArrowAngle (so 0° always corresponds with the view from earth arrow)

Note that earthArrowAngle still is meaningful (everything will be rotated) even if showEarthArrow is false.

The flashvars line for the example above is showEarthArrow=f&perimeterLabels=A,0;B,90;C,180;D,270

 
 exoplanetOrbitDiagram006   Wed, 4 Oct 06, 8:23pm UTC 
 

Now labels can be added to positions on the star and planet orbits. This is done using the starLabels or the planetLabels flashvars. If either of these variables is used it should consist of a semicolon delimited list of label items, where each label item is a comma delimited list of (1) the label text and (2) the angle (where the angle is in degrees counter-clockwise from right if the earth is at left -- the same definition as for planetAngle and starAngle). For example, the demonstration page above uses the following flashvars line:

starLabels=A,0;B,90;C,180;D,240;E,320&showStar=f

 
 exoplanetOrbitDiagram005   Wed, 4 Oct 06, 5:10pm UTC 
 

The native size of the swf is 300×300. The following flashvars are accepted:

  • starOrbitRadius - in pixels, default is 18; the planet's orbital radius is fixed at 94
  • showPlanet - can be 'T' or 'F' (or '1' or '0'), default is 'T'
  • showStar - can be 'T' or 'F' (or '1' or '0'), default is 'T'
  • planetAngle - in degrees counterclockwise from right (assuming that the view from earth is from the left), default is 180, but see note below
  • starAngle - in degrees counterclockwise from right (assuming that the view from earth is from the left), default is 0, but see note below
  • earthArrowAngle - in degrees counterclockwise from left, default is 0, changing this value causes the planetAngle and starAngle to change correspondingly (so they are effectively independent of this setting)
  • showDirectionArrows - can be 'T' or 'F' (or '1' or '0'), default is 'T'
  • orbitDirection - can be 'cw' or 'ccw', default is 'cw'
  • starOrbitDirection, planetOrbitDirection - both of these must be set for either to have an effect; these properties override the orbitDirection property

Note regarding the planet and star angles: if only one of these properties is defined the other will be assigned so that the bodies are on the opposite sides of the center of mass (the physically correct situation). The only reason for defining both properties is if you want to model a physically incorrect situation.