Sunday, November 06, 2011
Blomp mode
// just type here
// and click "save" when your done
// just type here
// and click "save" when your done
int plurp = 5;
int plarp = 5;
int fatness = 50;
int sinwave = 2;
void setup() {
size(500,500);
background(0,0,0);
noStroke();
}
void draw() {
translate(mouseX,mouseY);
rotate(frameCount);
sinwave = ceil(100*sin(frameCount/100.0));
for(int i=0; i < sinwave; i++) {
fill(mouseY,360-i,mouseX,40);
ellipse(plurp, plarp, fatness, fatness);
plurp = plurp + 80;
plarp = plarp + 92;
fatness -= 5;
if (plurp >= width) {
plurp = 0;
}
if (plarp >= height) {
plarp = 0;
}
if (fatness <= 0) {
fatness = 50;
}
}
fill(0,0,0,1);
rect(0,0,500,500);
}
// and click "save" when your done
// just type here
// and click "save" when your done
int plurp = 5;
int plarp = 5;
int fatness = 50;
int sinwave = 2;
void setup() {
size(500,500);
background(0,0,0);
noStroke();
}
void draw() {
translate(mouseX,mouseY);
rotate(frameCount);
sinwave = ceil(100*sin(frameCount/100.0));
for(int i=0; i < sinwave; i++) {
fill(mouseY,360-i,mouseX,40);
ellipse(plurp, plarp, fatness, fatness);
plurp = plurp + 80;
plarp = plarp + 92;
fatness -= 5;
if (plurp >= width) {
plurp = 0;
}
if (plarp >= height) {
plarp = 0;
}
if (fatness <= 0) {
fatness = 50;
}
}
fill(0,0,0,1);
rect(0,0,500,500);
}
comments
loading...
Add a comment: