10/03/2005 - ICM Class Notes

Posted on October 03, 2005 at 04:17 PM by sj695

Arrays

How to create a array

blank array with 5 slots
int[] mynum = new int[5]

or

array with 5 preset slots
int() mynum = {5, 8, 9, 10, 12}

Accessing a array
int a;

a = mynum(2)

a will then equal 9 because it is looking for the number 2 slot of the array (arrays start at 0)

Updating a array slot
mynum(0) = int(random(20));
mynum(1) = int(random(20));
mynum(2) = ......

Example mouseover using array: http://itp.nyu.edu/ICM/nancy/week4/rainbow

INTERATIONs

While {
....
....
}

for (int i=0, i< myNumLength, i++) {
   myNum(i) = random(20);
}

REALLY COOL EXAMPLE HERE: http://itp.nyu.edu/ICM/nancy/week4/rainbows


Processing and Physical Computing

- To much information, like everything related to Physical Computing i'll be spending hours in the lab learning this.

** NOTE TO SELF: DO SOME POP MATRIX EXAMPLES AS SOON AS POSSIBLE!!

 

ABOUT THIS JOURNAL

Welcome to my ITP Journal, my name is Steven Jackson and I'm currently in my first year of studies in the Interactive Telecommunications Program (ITP) at New York University.

I will be using this journal to store and document projects, exercises and notes pertaining to classes I will be taking my first and second year.

CONTACT INFO
SEARCH

CATEGORIES
ARCHIVES
RECENT ENTRIES
XML FEEDS

» RDF
» ATOM

POWERED BY

Super Powered by Movable Type 3.17