I am trying to align (colored) Cuboids within a cube, but the automatically coordinate generation "Row-2.)" is currently buggy. Can somebody help me please (the variable bound should be the start and define the cube-Length)!
1.) bound = 2;
2.) cb = IntegerDigits[Range[#], 10, 3] &[bound]
3.) Graphics3D[{Yellow, Cuboid[{0, 0, 0}], Blue, Table[Cuboid[cb[[i]]], {i, 1, 2^bound - 1, 1}]}, Boxed -> False]
By the way, how can I (automatically) fill each iteration with a different color ?
For example:
Cube-Iteration-1: Yellow (1 Cube)
Cube-Iteration-2: Blue (8 Cubes)
Cube-Iteration-3: Pink (27 Cubes)
...