- Introduction to computer programming:
- Variables types and data manipulation
- Primitive data types.
- Composite data types.
- Vector manipulation and basic mathematics.
Abridged table: for compete reference of data types please see...
http://processing.org/reference/index_ext.html
| float |
floating-point number or (a number with a decimal point) |
| int |
number without a decimal point |
| double |
same as float, however, can it is a 64-bit number and can hold a longer value. |
| char |
typographic objects such as A, C or % |
| string |
stores a sequence of characters "NAME" |
| |
|
| Array |
int[] value = new int[3];
value[0] = 10;
value[1] = 200;
value[2] = 40;
An array is a list of data and can store multiple values. Lists can be multi-dimensional.
|
| PVector |
This data type can store up to three values. We will discuss this data type in great detail in the following lesions, however, for more information please see the following link.
reference/PVectorl
|
- Conditionals and Iteration
Abridged table: for compete reference of data types please see...
http://processing.org/reference/index_ext.html
| for |
for( int i = 0; i<10; i++){
println(i);
}
A "for" loop will perform a sequence of operations. In the above example we count from 0 to 10.
|
| while |
int i = 0;
while(i<100){
println(i);
}
"While" performs a sequence of operations while a statement is true.
|
| if |
if(i<100){
println(true);
}
"If" will perform an operation in a statement is true. |
| break |
"Break" ends the execution of a statement such as for and while and moves to the next statement in the script. |
- Introduction to Object Oriented Programming
- Classes, Methods and Functions.
- Processing Libraries
- Using and installing libraries.
- Libraries for physics and AI simulations.
- Basic Drawing Techniques
- Points lines and Primitive Geometry.
- Algorithmic Drawing
- Closing statements and sample application.
ASSIGNMENT: Modify example from class and post on blog.
|
Links::
http://processing.org/
Libraries and Language Reference:
http://processing.org/reference/libraries/index.html
http://processing.org/reference/index_ext.html
Download Source Code from Lecture:
intro_01
class
|