Oslo - Generativ design - 2004.0824
 
 


aho_04_variables.pde

size(300,300);
background(100,100,100);

ellipseMode(CENTER_DIAMETER);

float a;
int b;
boolean sunIsShining=true;
String str="This is a string.";

a=5.5;
b=2;

// This is an example of addition
a=a+b; // a == 7.5
b=int(a+b); // b == 9.5

str=str+" This is another string.";
println("a is "+a);
println("b is "+b);
println("str is: "+str);

 

 

|
 
AHO, Oslo 2004 - Marius Watz
Hovedsiden