Even assembly language coders have to at least look at Java and see
what the fantastic pointerless paradigm is all about.
anaclock.class
lets you specify an image file to use as the clock face.
To match the line-drawn hour, minute, and second hands to the custom clock
face image, you can use the anaclock parameters to specify the x,y pixel
locations of the origins of the hands as well as their lengths and color.
You can use this from within your HTML file with an APPLET tag that
looks something like this:
<applet code="anaclock.class" width=160 height=160>
<param name=clockface value="images/roman.gif">
<param name=secx value=80>
<param name=secy value=115>
<param name=seclength value=22>
<param name=minx value=80>
<param name=miny value=80>
<param name=minlength value=60>
<param name=hourx value=80>
<param name=houry value=80>
<param name=hourlength value=35>
<param name=handcolor value="000000">
<param name=bgcolor value="000000">
</applet>
- clockface is the name of your custom clock face image
- secx is the x-coordinate of the origin of the second hand
- secy is the y-coordinate of the origin of the second hand
- seclength is the length of the second hand
- minx is the x-coordinate of the origin of the minute hand
- miny is the y-coordinate of the origin of the minute hand
- minlength is the length of the minute hand
- hourx is the x-coordinate of the origin of the hour hand
- houry is the y-coordinate of the origin of the hour hand
- hourlength is the length of the hour hand
- handcolor is a hex RGB value of the color to paint the hands
- bgcolor is a hex RGB value of the applet's background color