Wednesday, February 16, 2011

Code from 2-15-11




This is the code that enables us to create the first version of the color cube. We have three for loops that create the cube of the spheres. First we create the shading node and store that in $name. Then we store $name and give it the attributes of color. Then we set the attribute of $name2 depending on where the position is. Then we create the sphere, move it, and then assign the color to the object. Here is what the cube looks like now:

No comments:

Post a Comment