/* 6.914, Example 0.10 We covered the following data types in class: color, int, and float. Colors are of the following form: color colorName = color(redValue, greenValue, blueValue); ints and floats are integers and floating-point decimal numbers, respectively. They are declared like this: int x; float y; ... and assigned value like this: x = 5; y = 8; If you declare a value in the global environment (outside of the setup() or draw() methods) you will be able to access it (= assign its value and edit its value) from all your methods. Do not declare variables more than once! */ color myColor; int firstNum = 5; float secondNum; void setup(){ myColor = color(255, 0, 0); } void draw(){ background(myColor); // we use myColor, assigned in setup() secondNum = firstNum + 3; // secondNum will have a value of 8 }