| Original Message (ID '157313') By Bill Simpson: |
| You have RGBColor[{i,j,k}] and you need RGBColor[i,j,k] so use RGBColor@@p
You also need to make certain that 0<=i,j,k<=1 so you may need to divide by something other than 6 or do something else to ensure this.
This works.
Show[Graphics3D[Table[With[{p = {i,j,k}/6}, {RGBColor@@p, Opacity[.75], Cuboid[p, p+.15]}], {i,5}, {j,5}, {k,5}]]]
Now you just need to use your Table to construct the cubes of size and position that you want. |
|