Oscillating circle with Processing
This video was extremely helpful in explaining and helping me code multiple variables through processing:
https://vimeo.com/97527889
- What language is Processing based on?
- Java
- In your own words, what is the difference between a global and a local variable?
- A global variable is a variable that is defined and available in the global scope -- is made available throughout the entire file. A local variable is a variable only available in a specific scope, like in a function definition.
- What data type does the draw() function return when it is called?
- It doesn't return a data type -- void type
- In your own words, explain in detail what the code below the "//keep the circle in bounds" comment does
- It checks the upper and lower part of the circle and if either go outside the range of the processing window it changes the direction of the ball -- making the bounce of effect at the edges.
Sending serial data from an Arduino circuit to a Processing application
Etch-a-Sketch assignment
The Circuit:
The Code:
https://vimeo.com/97527889
No comments:
Post a Comment