animateJupiterMoons.frink

Download or view animateJupiterMoons.frink in plain text format


/** This draws the current view of Jupiter and its moons using the routines
    in planets.frink.
*/


use planets.frink

a = new Animation[1/30 s]

for d = now[] to now[] + 1 month step 20 minutes
{
   println[d]
   g = Planet.drawJupiterMoonsUnrotated[d, 0, 0, 1]
   g.color[0,0,0,0]
   g.drawRectSides[-27,-2,27,2]
   a.add[g.invertGrays[]]
}

a.write["JupiterMoons.gif", 800, 80]



Download or view animateJupiterMoons.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 20136 days, 4 hours, 53 minutes ago.