this makes a very nice presentation of a lot of footage from different films in a way that feels very solid. the sound track is a huge help.
496 items (475 unread) in 9 feeds

Fruit[] fruits =
{orange,pear,apple,pomegranate}
Fruits[1] = orange
Fruits[4] = pomegranate
for (int =0; i
if(count do something;
count++; //this at the very end and the only use of count for the
//array.
}
println(array.length); //to find errors in the array counter
force += attraction*(target-value);
numPixels = video.width * video.height,;
Dist function: dist();lets you measure distances without resorting to heavy math Pythagorean theorem.
Location += location + “speed”
(location = location + some amount)
force += attraction * (target- value);
acceleration = force/mass;
vel = (vel + acceleration) * damping;
void setX(_x) {
x = _x;
}
void get() {
y = _y;
}
CubeTower[] towers;
Person[] people;
people = new Person[4];
Class Dog }
int length;
int color;
String breed;
}
Dog fido = new Dog(13, 0x00ff00, “terrier”);
int myLenght = fido.length //the dot is important because it pulls up the attributes.
records[totalRebounds].TR ...
x += (destx - x) * easing;
y += (destx - y) * easing;
z += (destx - z) * easing;
import javax.media.opengl.*
import processing.opengl.*;
PGraphicsOpenGL pg1;
GL gl;
void setup() {
size (1024,768,OPENGL);
}
void draw()
{
pgl = (PGraphicsOpenGL) g;
gl = pgl.begin();
//makes blending based on alpha values
gl.glDisable(GL.GL_DEPTH_TEST); // don't know why works - disables depth test fixes glitch
gl.glEnable(GL.GL_BLEND); //makes the blend
gl.glBlendFunc(GL.GL_SRC_ALPHA,GL.GL_ONE); //chooses blend mode
}
textFont(myCentury, 100);
text("Whoo. Fonts.", 50, 150); numbers are x and y coordinates.
strokeCap (SQUARE);
String dog = "Fido";
String dog2 = "Woofy";
String dog3 = "Charlie";
String dog4 = "Blue";
String dog5 = "Killer";
println(dog + "," + dog2 + "," + dog3 + "," + dog4);
String[] dogs = {"Fido", " Woofy ", " Charlie ", " Blue " " Killer "}
Array = list, collection
To call it use []
So all [] is an array.
groceryItems[] = list (collection) of grocery items
groceryItems[ stuffToBuyAtGroceryToday =
1. milk
2. eggs
3. apples
{milk, eggs, apples} or, stuff between curly brackets are items on the list.
stuffToBuyAtGroceryToday[2] //in this case code counts from 0
buyStuff.length //dot
//can use translate to make something happen relative to another point
//subtle randomization can go a long way
//can make it look organic
//non-subtle randomization can look synthetic
Size(200,200); //defaults to java 2d
Size(20,200,P3D); //is jave 3-d. is real 3-d that runs on the graphics card. Can be flakey
or
Size(20,200,OPENGL); //. GOGL. Will run in a browser but not well, otherwise is really true 3-d. can do things that run fast and look really good. Can copy and paste code to get good glow effects. Uses graphics card to make the effects.
println(myRed + ", " + myGreen + ", " + myBlue);
+adds multiple characters.
Int mySize = 200;
Size (mySize, mySize);
These are operators
num = num+1 is same as num++
num +=
&& or ||
for (int i= 0; i
}
for (int i= 0; i (spaces added to because blogger wouldn't post)
}
int[] circles = {
170,113,78,30,13};
[] indicates array
/*Length of an array is the number of elements in the list*/
int[] circles = {
170,113,78,30,13};
size(400,400);
background(150);
noStroke();
smooth();
for (int j=0;j
for (int i=0;i fill(random(0,255), random(0,255), random(0,255));
ellipse ((width/4)*j,(height/4)*j,circles[i],circles[i]);
}
}
for (int i=0, i


