THIS CODE WILL GENERATE EPILEPTIC IMAGERY
I got bored of how slow the course is going and ended up making this seizure-iffic warp drive imagery. It's a little spacecraft that moves when you move the mouse, but also goes into warp drive. AGAIN DO NOT PLAY THE VIDEO IF YOU'RE SENSITIVE TO FLASHING LIGHTS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | // MAJOR SEIZURE WARNING!!! void setup() { size(800,800); frameRate(24); } void draw() { background(0,0,0); stroke(random(200,255), random(200,255), random(200,255)); strokeWeight(random(1,5)); fill(255,255,255); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); point(random(1,799), random(1,799)); triangle(mouseX, mouseY, mouseX - 50, mouseY + 50, mouseX + 50, mouseY + 50); triangle(mouseX+50, mouseY+190, mouseX+50, mouseY+80, mouseX+80, mouseY+190); triangle(mouseX-50, mouseY+190, mouseX-50, mouseY+80, mouseX-80, mouseY+190); rect(mouseX-50, mouseY + 50, 100, 100); fill(255,128,0); stroke(255,255,0); triangle(mouseX, mouseY+150, mouseX-20, mouseY+180, mouseX+20, mouseY+180); } void mouseMoved() { background(random(100,200), random(100,200), random(100,200)); stroke(random(200,255), random(200,255), random(200,255)); strokeWeight(random(5,10)); fill(random(200,255), random(200,255), random(200,255)); rect(random(0,width), random(0,height), 1, 200); rect(random(0,width), random(0,height), 2, 200); rect(random(0,width), random(0,height), 1, 200); rect(random(0,width), random(0,height), 2, 200); rect(random(0,width), random(0,height), 1, 200); rect(random(0,width), random(0,height), 2, 200); rect(random(0,width), random(0,height), 1, 200); rect(random(0,width), random(0,height), 2, 200); rect(random(0,width), random(0,height), 1, 200); rect(random(0,width), random(0,height), 2, 200); triangle(mouseX, mouseY, mouseX - 50, mouseY + 50, mouseX + 50, mouseY + 50); triangle(mouseX+50, mouseY+190, mouseX+50, mouseY+80, mouseX+80, mouseY+190); triangle(mouseX-50, mouseY+190, mouseX-50, mouseY+80, mouseX-80, mouseY+190); rect(mouseX-50, mouseY + 50, 100, 100); triangle(mouseX, mouseY+150, mouseX-20, mouseY+180, mouseX+20, mouseY+180); } |
No comments:
Post a Comment