Variables

Basic Shapes from last week


Variables


I used the mouse function in processing and used it to scale the shapes based on the up and down, left and write movement. I made variables to control the sizes of objects and the color. I also used local and global variables. Some variables I just wanted to add to a number value and some, like the color I made random. The triangle consists of a square that's the base. These are made up of 4 vertices. The use the same number in the X and Z coordinates and it's a matter of it being positive or negative. The triangle shape share the same edge of one of the side of the square base and one verts that is in the center. The cube is scaled up and down with the move the mouse up and down and the sphere is scaled by moving the mouse from left to right.

What I learned about this project that variables can be easily used through the code. It can add value to a number or it can randomizes things like color. I think should have not remade my shapes from last week. I regret sticking with this project. I saw someone's else project and he used all the variables types. I thought that would be closer to the lesson about variables. In the end I did learn about variables and add to my knowledge of coding.