www.randelshofer.ch

RubikPlayer

 

© Werner Randelshofer

Readme  Changes  License

 

Examples   1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  <<  >>

Example 6

 

colorTable=
  0xa57cda,
  0xf8f8f8,
  0xb90a0f,

faces=
  0,1,2,1,2,0

Color scheme of
Meffert's 3-Color-Cube:
purple, white, purple,
white, red, red  

colorTable=
  0xffd200,
  0x606060


faces=
  0,1,1,1,1,1

One face yellow, all other faces grey.

 

Demonstrates the colorTable and faces parameters.

Tip: You can assign names to the values in the colorTable. See Example 18.

Applet Tag:

<applet
    code="ch.randelshofer.rubik.RubikPlayerApp.class"     archive="rubikplayer.zip"
    
width="264" height="245">

<param name="colorTable" value="0xa57cda,0xf8f8f8,0xb90a0f">
<param name="faces" value="0,1,2,1,2,0">

</applet>