CubePlayer

Applet Tag Generator

With the form below you can generate the HTML code needed to embed the PocketPlayer applet in your web page.

 

Generated applet tag to be inserted into your web page:

 

 

Show descriptions Show tips

Applet Parameters:

   
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.

scriptType

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.

script

The script.

Default value: no script.

scriptProgress

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.

initScript

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

displayLines

Number of lines of the script to display.
Set to 0 to switch the display off.
Default value: 1

autoPlay

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.

colorTable

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:

   5     
 4     1   3 
   2     

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.

faces

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:

   5     
 4   0   1   3 
   2     

Tip: You can reference a color defined in "colorsTable" by its index or by its name.

 
stickersFront
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.

stickersImage

Specifies the url of the stickers image.
This parameter only works for the PocketPlayer.jar applet.
Default value: no stickers image


backgroundColor

Specifies the background color of the applet.
Range: 0x000000..0xffffff
Default value: 0xffffff

backgroundImage

Specifies the url of the background image.
Default value: no background image


alpha and beta

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


rearView

Turns rear view on or off.
Values: true, false
Default value: false

 

rearViewBackgroundColor

Background color of the rear view.
Range: 0x00000 (black) .. 0xffffff (white)
Default value: undefined (uses value of parameter backgroundColor)

 

rearViewBackgroundImage

Specifies the URL of the background image for the rear view.
Default value: undefined (uses value of parameter backgroundImage)

 

rearViewScaleFactor

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