animateJupiterMoons.frink

View or download 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]



View or download 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 18664 days, 19 hours, 54 minutes ago.