Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PFont myFont;
- String [] names ={"so", "much", "depends", "upon", "a", "red", "wheel",
- "barrow", "glazed", "with", "rain", "water", "beside", "the", "white", "chickens"};
- String textHolder = "M+I";
- void setup() {
- size(960,540);
- myFont = createFont("Helvetica", 50);
- textFont(myFont);
- println (names.length);
- background(255);
- textAlign(LEFT);
- }
- void draw() {
- }
- void mousePressed(){
- fill(random(255),random(255),random(255));
- textSize(random(9,105));
- textHolder=names[int(random(names.length))];
- text(textHolder,mouseX, mouseY);
- }
- void mouseMoved(){
- noStroke();
- fill(0,random(140,255),random(180,255));
- ellipse (random(0,1000),random(0,1000),10,10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement