Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ISIA EDITORIA 1,
- // BELCASTRO, DE FAABRITIS, MAKHOUL, MARCONE, TESCARI,
- // SPERIMENTAZIONE DEL COMANDO random
- void setup() {
- size(500,500);
- background(0);
- }
- void draw() {
- stroke(random(255), 0, random(255)); // R, G, B
- noFill();
- // the screen is 100 pixels wide and 100 pixels tall
- // lines start at the middle of the screen (50, 50)
- line(mouseX, mouseY, random(250), random(250) );
- ellipse(mouseX, mouseY, 3, 3 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement