Please visit my
What's Hot in ...
pages regulary
to check for Java news, interesting applets and a lot of other information.
3D Rotating Cube Applet 2.0 Description
Parameters
Required Parameters
- <param name="picture." value="[URL | file , URL | file , String]">
Where .=1-4 for the pictures of the four sides of the cube.
The parameter is a triple (divided by commas) containing of
- The URL or file name of the picture. The value can either be a complete URL
or a file name relative to the document base directory.
If the file/URL is not valid, the applet is stopped.
- The URL or file name of a document (link) that is shown when the user
clicks on the picture on the cube. The value can either be a complete URL
or a file name relative to the document base directory.
If the file/URL is not valid, the link URL is ignored.
This parameter is optional.
- The target frame for the link URL.
This parameter is optional.
Optional Parameters
- <param name="size" value="[int]">
The size (in pixels) of the front rectangle when the rotation angle is 0 degrees.
Default is 60.
Be careful with the size, because the calculation time of the cube
and the amount of storage needed raise dramatically with the size.
If the value in invalid (no number), the value is set to 60.
If the value is <10, the value is set to 10.
- <param name="delay" value="[int]">
The time (in ms) between the image updates.
Default is 100.
If the value in invalid (no number), the value is set to 100.
If the value is <0, the value is set to 0.
- <param name="degrees" value="[int]">
The number of degress between the actual picture and the next one.
You can use this value to improve the performance and the amount
of storage needed.
Default is 3.
If the value in invalid (no number), the value is set to 3.
If the value is <1, the value is set to 1.
If the value is >10, the value is set to 10.
- <param name="backgroundcolor" value="[0-255],[0-255],[0-255]">
The color of the background. The three integer values specify the red, green, blue
amount of the color.
Default is "255,255,255" (white).
If one of the values is missing or no number, the default color will be used.
If one value is <0, the value is set to 0.
If one value is >255, the value is set to 255.
- <param name="linecolor" value="[0-255],[0-255],[0-255]">
The color the lines of the cube. The three integer values specify the red, green, blue
amount of the color.
Default is "0,0,0" (black).
If one of the values is missing or no number, the default color will be used.
If one value is <0, the value is set to 0.
If one value is >255, the value is set to 255.
History
Version 2.0
- Changed from online calculated to pre-calculated images,
which dramatically improves the performance.
- Added parameter "degrees".
- Added parameters "backgroundcolor" and "linecolor".
Version 1.0
(c) Copyright 1996 by
Stefan Ruettinger
(Homepage:
http://www.geocities.com/SiliconValley/9812/index.html)