Monday, February 21, 2011

Code from 2-17-11

We now know that if you do file -o "yourFileName.mel" you can generate the color cube. To open generate the color cube an easier way, I created a procedure in mel and named it "generateCube"





After you enter this, you can generate a color cube simply by calling the procedure. I also added an argument to the procedure called $ballNumb. That way, the person calling the procedure can pick the dimensions of the cube at the same time as calling the procedure. Now I can generate a color cube with one line of code.

No comments:

Post a Comment