• amidoinitrite,  homework

    Understanding 3D space

    Making my way through the Understanding 3D space┬árecipe from the┬áProcessing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how set a variable for depth and zSpeed and also how to change the variable inside the draw function for animation. I also learned that if you want to use the rect or ellipse functions draw shapes in a 3D environment you need to use the translate function to change the coordinate system. Normally, the translate function uses x, y and z coordinates in a 3D environment, but in this Sketch the z coordinate has been replaced by the depth variable. Using the depth variable for the…