| |
|
code and archive |
The name of the
applet class and the name of the archive file which contains the applet.
Values:
code="PocketPlayer.class" archive="PocketPlayer.jar"
code="PocketPlayerFlat.class" archive="PocketPlayerFlat.jar"
code="RubikPlayer.class" archive="RubikPlayer.jar"
code="RubikPlayerFlat.class" archive="RubikPlayerFlat.jar"
code="RevengePlayer.class" archive="RevengePlayer.jar"
code="RevengePlayerFlat.class" archive="RevengePlayerFlat.jar"
code="ProfessorPlayer.class" archive="ProfessorPlayer.jar"
code="ProfessorPlayerFlat.class" archive="ProfessorPlayerFlat.jar"
Tips:
Use PocketPlayer, if you need to display an image on the stickers of the cube. Use PocketPlayerFlat, if you need to display many cubes on the same page.
Use pack200.php if your server supports PHP scripts. Using pack200.php, and by uploading the files with the extensiosn jar.gz and jar.pack.gz you can significantly reduce the download time of the applet.
|
width and height |
The width and the height of the applet.
Range: 1..9999 |
|
resourceFile |
The URL of a resource file.
A resource file contains the notation and the cube used by the applet.
|
|
notation |
Selects a notation from the resource file.
You can only specify a value here, if you also specify a resource file.
If you specify a resource file, and leave this field empty, the default
notation from the resource file is taken. |
|
The type of the script.
A "Generator" transforms the cube from its solved state to
an unsolved state.
A "Solver" transforms the cube from an unsolved state to the solved state.
Choice of: "Generator", "Solver"
Default value: "Generator"
Tip: Use generators to describe pretty patterns, use
solvers to describe maneuvers.
|
|
The script.
Default value: no script.
|
|
Position of the progress bar. Positive values are offsets from the
start of the script, negative values are offsets from the end of the
script.
Range: -9999..9999
Default value: -1 for generators, 0 for solvers, 0
when autoPlay is set to true.
|
|
An initScript is used to set up the initial position of the cube.
If you don't specify an initScript, the solved state of the cube is used.
Default
value: no script
|
|
Number of lines of the script to display.
Set to 0 to switch the display off.
Default value: 1 |
| |
Turns automatic playback of the script on
or off.
Values: true, false
Default value: false |
|
cube |
Selects a cube from the resource file.
You can only specify a value here, if you also specify a resource file.
If you specify a resource file, and leave this field empty, the default
cube from the resource file is taken. |
|
RGB color look up table. The colors in this table can be referenced
by the faces and the stickers attribute. The table may contain up to
54 different values.
The default values represent the colors of the Arxon cube: blue, orange,
white, green, red and yellow.
This results into the following color scheme: Range: 0x000000..0xffffff
Default value: 0x003373,0xff4600,0xf8f8f8,0x00732f,0x8c000f,0xffd200
Tip: For ease of use, you can assign names to the
colors.
Instead of writing 0x003373 you can write blue=0x003373 or b=0x003373. |
|
Maps colors from the color table to the faces of the cube.
6 integer values: front, right, down, back, left, up.
The values of the faces parameter are overriden by the stickers parameter
if present.
Range: 0..54
Default value: 0,1,2,3,4,5 The face values are organized like this:
Tip: You can reference a color
defined in "colorsTable" by
its index or by its name. |
|
|
|
stickersRight |
|
stickersDown |
|
stickersBack |
|
stickersLeft |
|
stickersUp |
|
|
The stickers parameters map
colors from the color table to the stickers of the cube;
25 integer values for each of the 6 faces: front, right, down, back,
left, up.
The stickers parameters override the values of the faces parameter.
Default Values
| Front: |
0,0,0,0 |
| Right: |
1,1,1,1 |
| Down: |
2,2,2,2 |
| Back: |
3,3,3,3 |
| Left: |
4,4,4,4 |
| Up: |
5,5,5,5 |
The sticker values are organized like this:
| Up: |
1 |
2 |
|
|
|
|
| Left |
3 |
4 |
Right |
Back |
| 1 |
2 |
1 |
2 |
1 |
2 |
1 |
2 |
| 3 |
4 |
3 |
4 |
3 |
4 |
3 |
4 |
| |
|
1 |
2 |
|
|
|
|
| Down: |
3 |
4 |
|
|
|
|
Tip: You can reference a color
defined in "colorsTable" by
its index or by its name. |
|
Specifies the url of the stickers image.
This parameter only works for the PocketPlayer.jar applet.
Default value: no stickers image
|
|
|
Specifies the background color of the applet.
Range: 0x000000..0xffffff
Default value: 0xffffff
|
|
Specifies the url of the background image.
Default value: no background image
|
|
| |
Alpha and Beta view angles of the cube. Tilt the cube
along the X-axis and the Y-Axis. Positive values tilt in clockwise direction, negative
values in anticlockwise direction.
Range: -90..90
Default value: -25
|
|
|
Specifies the intensity of the ambient light.
This parameter only works for the PocketPlayerFlat.jar applet.
Range: 0.0..1.0
Default value: 0.6
|
|
Specifies the intensity of the light source.
This parameter only works for the PocketPlayerFlat.jar applet.
Range: 0.0..1.0
Default value: 1.0
|
|
Specifies the location of the light source using
a right-handed X, Y, Z coordinate system. +X is horizontal to the right,
+Y is the
local gravitational up, +Z is directly toward the viewer.
This parameter only works for the PocketPlayerFlat.jar applet.
Values: X, Y, Z
Default value: -500, 500, 1000 |
|
| |
Turns rear view on or off.
Values: true, false
Default value: false
|
| |
Background color of the rear view.
Range: 0x00000 (black) .. 0xffffff (white)
Default value: undefined (uses value of parameter
backgroundColor)
|
| |
Specifies the URL of the background image
for the rear view.
Default value: undefined (uses value of parameter
backgroundImage)
|
|
Specifies the scale factor of the rear view
relative to the front view.
Range: 0.1..1.0
Default value: 0.75 |
rearViewRotation |
Specifies the rotation of the rear view along
the X, Y and Z axis in degrees.
Values: X, Y, Z
Default value: 180, 0, 0 |