Hypno-Toad!
in
Share your Work
•
3 years ago
New to the IDE, made this as part of my 2 program project for ISTA at the U of A, all hail Kelland!
Hold left click to make his eyes hypnotize, hold the right to fill the border with some random circles.
Hopefully the image works =/
- PImage img;
void setup(){
size(600,500);
smooth();
background(50);
img = loadImage("Hypno-Toad.png");
}
void draw(){
image(img, 50, 50);
if(mousePressed && mouseButton == LEFT){
float r = random(255);
float g = random(255);
float b = random(255);
float s = random(100);
float s1 = random(100);
fill(r,g,b);
ellipse(240, 95, s,s1);
ellipse(115, 95, s,s1);
}
if(mousePressed && mouseButton == RIGHT){
float r = random(255);
float g = random(255);
float b = random(255);
float x = random(500);
float y = random(500);
fill(r,g,b);
ellipse(x,y,r,g);
}
}