README Phase of the Moon Clock version 1.0 June 30, 1997. (the day Hong Kong reverted to Chinese rule.) by Pete Gray, push@lglobal.com You have retrieved and unzipped a file containing three .class files, two .gif files, a .html file and this .txt file. The .html document is a sample of using every possible parameter. It does not look pretty when displayed. You can use any or none of the parameters, as you please. A description is provided below. The three .class files and the two .gif files must be placed in the same directory (folder). If this is the same directory as your HTML document calling the applet is in, put a tag in your document like this: It is a good idea, for neatness' sake, to create a directory just for this applet. If you do so, you must use CODEBASE in your applet tag. where it is assumed that MoonClock contains the .class and .gif files. You can change the height or width of the applet, but the image will not be scaled accordingly. If you specify no parameters at all, the applet will display the current phase of the moon on a blue background. You can control the behavior of the applet by using the following parameters in your HTML, immediatedly after the applet tag: set PLANET to earth if you want the earth displayed, and the phase to be calculated to the phase of the earth. CLOCK must be set to ticking for the clock to be shown. set ROLLING to phasing if you want the phases of the moon to roll by. DELAY is the delay used by the animation loop, in milliseconds. It is 35 if unspecified, but you may wish to change it. If you do not wish to display, or start the animation at, the current phase, you can specify "new" or "full" here. If you set PHASEWAIT greater than zero, the animation will pause at the current phase (or see STARTAT, above) for as many cycles as you specify. The first time through the phases is a little chunky, because a lot of math is being done on the planet image. If you set ANIMWAIT to wait, the animation will not show untill the images are processed and it can go smoothly. Select the number of phases in the animation. This is a better way to change the speed of the phasing than changing the delay. Set the red, green, and blue values for the background colour you wish. If you don't set them all, you get blue. set the red, green, and blue of the second, minute, and hour hands. if you don't set all three for one hand, you get red. makes the applet such that you can change what it is doing by clicking it with your mouse button. don't forget your tag! Here is an example of an HTML document using all of the above tags; My Damn Applet Please make reference to the author, Pete Gray, push@lglobal.com, www.lglobal.com/~push/ if you use this applet in your web page.