The Actual Code :
String [] names = {“GRID”, “MODERNITY”, “AXONOMETRIC”, “PROJECTION”,
"LESS IS MORE", “MODULE”, “ABSTRACTION”, “ARCADE”, “UTOPIA”, “PERSPECTIVE”,
“COLLAGE”, “ORNAMENT”, “STYLE”, “ZEITGEIST”, “PROPORTION”,“GENIUS LOCI”,“PROPORTION”};
String textHolder;
"LESS IS MORE", “MODULE”, “ABSTRACTION”, “ARCADE”, “UTOPIA”, “PERSPECTIVE”,
“COLLAGE”, “ORNAMENT”, “STYLE”, “ZEITGEIST”, “PROPORTION”,“GENIUS LOCI”,“PROPORTION”};
String textHolder;
void setup() {
size(900, 600);
println(names.length);
textSize (30);
background(0);
textAlign(CENTER);
}
size(900, 600);
println(names.length);
textSize (30);
background(0);
textAlign(CENTER);
}
void draw() {
}
}
void mouseMoved() {
fill( 255, random(255));
textSize(random(5, 10));
textHolder = names[int(random(names.length))];
text(textHolder, mouseX, mouseY);
}
fill( 255, random(255));
textSize(random(5, 10));
textHolder = names[int(random(names.length))];
text(textHolder, mouseX, mouseY);
}
void mouseClicked() {
fill( random(255), random(255), random(255), random(255));
textSize(random(50, 100));
textHolder = names[int(random(names.length))];
text(textHolder, mouseX, mouseY);
}
textSize(random(50, 100));
textHolder = names[int(random(names.length))];
text(textHolder, mouseX, mouseY);
}
0 comments:
Post a Comment