Any questions? Email webmaster@caustik.com.
Visit Caustik Web Design at www.caustik.com.
The Applet
Your browser cannot view Java Applets.

The Code
<applet archive="lights.jar" code=lights.class width=200 height=200>
<param name="regcode" value="NONE">
<param name="reglink" value="NONE">
<param name="regtarget" value="NONE">
<param name="automove" value="1">
<param name="mousemove" value="1">
<param name="mousewait" value="10">
<param name="startx" value="150">
<param name="starty" value="180">
<param name="maindelay" value="10">
<param name="reddark" value="95">
<param name="greendark" value="95">
<param name="bluedark" value="95">
<param name="redexpose" value="255">
<param name="redexposes" value="5">
<param name="redexposemax" value="350">
<param name="redexposemin" value="50">
<param name="greenexpose" value="85">
<param name="greenexposes" value="10">
<param name="greenexposemax" value="350">
<param name="greenexposemin" value="50">
<param name="blueexpose" value="85">
<param name="blueexposes" value="15">
<param name="blueexposemax" value="350">
<param name="blueexposemin" value="50">
<param name="wrapvertical" value="0">
<param name="wraphorizontal" value="0">
<param name="image" value="lights.jpg">
<param name="map" value="lights2.jpg">
<param name="msg" value="Lights Applet by Caustik Web Design">
Your browser cannot view Java Applets.
</applet>
Help
The following list explains the parameters that can be changed in the Lights Java Applet. If you need help in placing the actual applet on your page, it's basically copy and paste. Copy the above code beginning at "<applet archive=", and ending at "</applet>", and paste it into your own page.


Parameter "regcode"
By registering (www.caustik.com/register) this applet, you can avoid seeing the popup-message everytime the applet is loaded (this only occurs when applet is ONLINE), and parameters such as "msg" and "reglink" will be unlocked.

Parameter "reglink"
On the registered version, this is the URL where the Applet will redirect to when clicked on. This can be a value such as "http://www.caustik.com/index.html", or "NONE"(nothing will happen when the applet is clicked).

Parameter "regtarget"
If you are using frames, or want the "reglink" to popup in a new window, use one of the following values for this Parameter:
  • _self = show in current frame.
  • _parent = show in parent frame.
  • _top = show in top-most frame.
  • _blank = show in new unnamed top-level window.
  • (other) = show in new top-level window named (other).

Parameter "automove"
If set to "1", the light source will automatically swirl around the Applet. If set to "0", this effect will not occur.

Parameter "mousemove"
If set to "1", the light source can be moved with the mouse. If set to "0", this effect will not occur.

Parameter "mousewait"
The amount of time the Applet waits before automove takes effect.

Parameter "startx"
The horizontal starting position of the light source (in pixels).

Parameter "starty"
The vertical starting position of the light source (in pixels).

Parameter "maindelay"
The amount of time the Applet Thread "Sleeps" in between frames.

Parameter "reddark"
The amount of red darkness to "add" to the image before the light source is rendered. ("-255" - "255", Default - 155).

Parameter "greendark"
The amount of green darkness to "add" to the image before the light source is rendered. ("-255" - "255", Default - 155).

Parameter "bluedark"
The amount of blue darkness to "add" to the image before the light source is rendered. ("-255" - "255", Default - 155).

Parameter "redexpose"
The starting red ("-255" - "255") strength of the light source.

Parameter "redexposes"
The slope of "redexpose".

Parameter "redexposemax"
The maximum "redexpose" value. When "redexpose" reaches this value, "redexposes" is reversed.

Parameter "redexposemin"
The minimum "redexpose" value. When "redexpose" reaches this value, "redexposes" is reversed.

Parameter "greenexpose"
The starting green ("-255" - "255") strength of the light source.

Parameter "greenexposes"
The slope of "greenexpose".

Parameter "greenexposemax"
The maximum "greenexpose" value. When "greenexpose" reaches this value, "greenexposes" is reversed.

Parameter "greenexposemin"
The minimum "greenexpose" value. When "greenexpose" reaches this value, "greenexposes" is reversed.

Parameter "blueexpose"
The starting blue ("-255" - "255") strength of the light source.

Parameter "blueexposes"
The slope of "blueexpose".

Parameter "blueexposemax"
The maximum "blueexpose" value. When "blueexpose" reaches this value, "blueexposes" is reversed.

Parameter "blueexposemin"
The minimum "blueexpose" value. When "blueexpose" reaches this value, "blueexposes" is reversed.

Parameter "wrapvertical"
If set to "1", then pixels that vertically flood over the edge of the Applet will be "wrapped" onto the opposite side. If set to "0", the pixels will not wrap.

Parameter "wraphorizontal"
If set to "1", then pixels that horizontally flood over the edge of the Applet will be "wrapped" onto the opposite side. If set to "0", the pixels will not wrap.

Parameter "image"
The "image" parameter is the file name (i.e. "lights.jpg"), that will be exposed to the light source. This image must be in the same directory as:
  • The .html file.
  • lights.jar
This image can be of either .GIF or .jpg format. It is also important that the "<applet width" and "<applet height" are set equal to the height and width of this image, respectively. For example, the image in the above demonstration is exactly 200 pixels width, 200 pixels height. This is very crucial, and must be exact in order for the applet to look pleasing. THE APPLET WILL NOT AUTO-SIZE IMAGES TO FIT THE APPLET AREA.


Parameter "map"
The "map" parameter is the file name (i.e. "lights2.jpg"), that will be used to create data for rendering a light source onto "image". This image must be in the same directory as:
  • The .html file.
  • lights.jar
This image can be of either .GIF or .jpg format. It is also important that the "<applet width" and "<applet height" are set equal to the height and width of this image, respectively. For example, the image in the above demonstration is exactly 200 pixels width, 200 pixels height. This is very crucial, and must be exact in order for the applet to look pleasing. THE APPLET WILL NOT AUTO-SIZE IMAGES TO FIT THE APPLET AREA.


Parameter "msg"
The message that the viewer's browser window will display while the Applet is running.

"Your browser cannot"
This message is only visible on browsers that are not capable of viewing Java Applets. You can change this to virtually any HTML tags.