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

 

Screen-shot-2013-09-12-at-5.26.24-PM-300x300

 

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);

}

 

Screen-shot-2013-09-12-at-5.33.25-PM-300x238

 

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));
}
}

 

 

Screen-shot-2013-09-12-at-5.41.07-PM-300x297

 

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 by .

About taylorrusso

Haiii everyone, I’m Taylor! (obviously) I was born and raised in dirty jersey, although in Ringoes, where I lived, it’s anything but dirty. I grew up in a farm area with all the typical farm animals you could imagine. I’m 19, sophomore, and CD major. I’m really excited for this class because this is not what I was expecting at all. Like I said in class, I hope to become one of those nerds that they filmed in the Social Network, sitting in the computer, typing out ridiculous computer jawn.

Leave a Reply

Your email address will not be published.