I'm programming a 3D Rubik's cube using vpython, and it's almost done. I've got all the click controls, and the rotations of the faces figured out, the one thing that I still don't know how to do is giving the pieces colors.

You should know that my cube is made of 27 little cubes (one is hidden and it actually doesn't have a purpose, but when you use for loops it's easier to ignore it.) As you know, the pieces must have 1, 2, or 3 colors, and I don't know how to paint a little cube with more than one colour. Of course one way is to stick little thin boxes with the color i want, to each side of the little cube, but i was wondering if there was a way of making it with the texture function of objects.

Does someone has a suggestion?

Thanks