コード例 #1
0
ファイル: FaceCube.java プロジェクト: thamma/cube
 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 // Construct a facelet cube from a string
 FaceCube(String cubeString) {
   for (int i = 0; i < cubeString.length(); i++)
     f[i] = Color.valueOf(cubeString.substring(i, i + 1));
 }
コード例 #2
0
ファイル: FaceCube.java プロジェクト: thamma/cube
 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 FaceCube() {
   String s = "UUUUUUUUURRRRRRRRRFFFFFFFFFDDDDDDDDDLLLLLLLLLBBBBBBBBB";
   for (int i = 0; i < 54; i++) f[i] = Color.valueOf(s.substring(i, i + 1));
 }