# Really Old Post Ignore

This was originally posted on the other blog, just posting it for credit, nothing cool, please ignore(:

also http://aisencc.com has the original post incase I missed anything in this post

In this I changed the size of the triangle, and the size of the actual image

float x = 200;
float y = 200;

void setup()
{
size (800, 800);
background (255);
smooth();
frameRate(25);
noStroke();
}

int value = 205;

void draw() {
fill(value);

fill(0, 0, random(0), 5);
beginShape(TRIANGLE_FAN);
vertex(x, y);
vertex(x, mouseY);
vertex(mouseX, y);
vertex(x, mouseY);
vertex(mouseX, y);
vertex(x, mouseY);
endShape();
}

void mousePressed() {
background(255);

}

Circle[] circles; // array for the circle objects
int numCircles=80; // number of circles in simulation

void setup() {
size(600,480);
smooth();
strokeWeight(6); // boundaries thicker
circles = new Circle[numCircles]; // create the array of the given size
for (int i=0; i<numCircles; i++) {
// now create circles according to the given definition, use random numbers as values
circles[i] = new Circle(50+random(500),50+random(380),random(100),random(255));
}
}

void draw() {
background(0,250); // repaint a white background in each frame
for (int i=0; i<numCircles; i++) {
circles[i].render(); // tell every circle to repaint itself (after rotating a bit)
}
}

class Circle {
float x, y; // position
float v; // sin value
float c; // color value

Circle(float x, float y, float v, float c) {
// assign the randomly created values to the class variables to remember them for painting
this.x=x;
this.y=y;
this.c=c;
this.v=v;
}

void render() {
fill(255,255-c,c); // set the gray value as color to fill
v+=0.1;
ellipse(x,y,20+20*sin(v),20+20*sin(v));
}
}

float x, y, wd, ht;

void setup ()
{
size( 400, 400 );
background( 177, 220, 237 );

x = width*.7;
y = height*.5;
wd = width*.1;
ht = height*.3;

//String[] fontList = PFont.list();
//println(fontList);
//myFont = createFont(“CoffeeHouse”, 2 );
//textFont( myFont );
//textAlign( CENTER, CENTER );

}

int value = 255;
int circle = 0;

void draw ()
{
fill( value );
rect( 0, 0, width, height );

fill( circle );
noStroke( );
ellipse( mouseX, mouseY, ht*.5, ht*.5 );

fill( random(128), random(168), random(112) );
noStroke( );
ellipse( mouseX, y, wd, wd );

fill( random(147), random(252), random(112) );
noStroke( );
ellipse( x, mouseY, wd, wd );

fill( random(112), random(118), random(252) );
noStroke( );
ellipse( y, mouseX, wd, wd );

fill( random(252), random(112), random(122) );
noStroke( );
ellipse( mouseY, x, wd, wd );

fill( random(250), random(322), random(54) );
noStroke( );
ellipse( mouseY*.75+50, mouseX+160, wd, wd);

fill( random(255) );
noStroke( );
ellipse( 1000-mouseY, 1000-mouseX, wd, wd);

fill( random(124), random(120) );
noStroke( );
ellipse( 1000-mouseX, 1000-mouseY, wd, wd);

fill( random(124), random(120) );
noStroke( );
ellipse( mouseX*.75+34, mouseY*.63+90, wd, wd);

fill( circle );

text( “FUCK”, width*.80, height*.80 );
createFont( “AbrahamLincoln”, 2 );

}

void mouseClicked( ) {
if (value == 0) {
value = 100;
} else {
value = 255;
}
if (circle == 0) {
circle = 255;
} else {
circle = 0;
}
}

This entry was posted in Uncategorized on .