Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
decipleofmagus
decipleofmagus's Profile
2
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
ISTA project, Tumor, Mor Dots
[0 Replies]
01-Nov-2010 01:08 PM
Forum:
Share your Work
Decided to write 2 more programs for my project, the Tumor is an expanding amorphous blob and mor dots...well...you shall see.
Mor Dots!!!
void setup(){
size(600,600);
background(145);
smooth();
}
void draw(){
for(int i = 0;i <= second(); i++){
fill(random(255),random(255),random(255));
ellipse(random(600),random(600),second()*5,second()*5);
}
}
The Tumor
void setup(){
size(600,600);
background(150);
smooth();
}
void draw(){
fill(0);
for(int j = 0; j<= 60;j++){
ellipse(300+random(50),300+random(50),second()*random(second()/5), second()*random(second()/5));
}
}
Hypno-Toad!
[4 Replies]
31-Oct-2010 12:57 PM
Forum:
Share your Work
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);
}
}
«Prev
Next »
Moderate user : decipleofmagus
Forum