Assignment 4 processing “Busy Bee”

Screen Shot 2014-11-25 at 8.59.56 AM

PShape states;
PFont font;
int opacity= 0;
float speed = 10.5;
int diameter =125;
float x;
float y;
PImage img;

void setup(){
states = loadShape(“honeycomb.svg”);
size(840, 620);
smooth();
x= width/2;
y= height/2;
font= loadFont(“OCRAStd-48.vlw”);
textFont(font);
strokeWeight(.5);
stroke(0, 130);
background(255, 227, 13);
img=loadImage(“blake.png”);
imageMode(CENTER);
frameRate(10);
}

void draw(){

fill(2300, 50);
x+= random(-25, 25);
y+= random(-25, 25);
x= constrain(x, 100, width);
y= constrain(y, 100, height);
shape(states, x, y, 230, 230);

fill(2300, 50);

fill(0);
text(“Buzz”, random(-200, 700), random(-20, 320));

image(img,mouseX, mouseY, 70, 70);

}
void mousePressed(){
background(255, 227, 13);

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s