Tuesday, February 2, 2016

active mode

//declare variables

int counter;

void setup(){
  //initialize values
 size(500,500);
 background(255);
  println("This is the setup function");
  counter = 0;
  //drawCircles(mouseX,mouseY);
}

void draw(){
 
  counter = counter + 1;
 
  println(counter);
  println("This is the setup function");
  println(mouseX + " " + mouseY);
  fill(0,0,255);
  noStroke();
  //background(255);
  ellipse(mouseX-50,mouseY,10,10);
  fill(255,0,0);
  ellipse(mouseX+50,mouseY,10,10);
  fill(0,255,0);
  ellipse(mouseX,mouseY-50,10,10);
  fill(255,2555,0);
  ellipse(mouseX,mouseY+50,10,10);
  //pushMatrix();
  //translate(X,Y)
 // popMatrix();
 
}
confetti maker




Thursday, January 21, 2016

scene

code

//ellipse = circle
size(400,400);
background(0,0,0);

//rectMode(CENTER);
stroke(255,0,0);
strokeWeight(50);
//fill rules(green,red,blue,transparency)
fill(0,0,155);

ellipse(100,100,50,50);
ellipse(200,100,50,50);
ellipse(300,100,60,60);
ellipse(250,200,30,60);
ellipse(250,200,90,30);
//**comment from here to see the rest of the shapes hidden**
ellipse(200,200,400,400);
ellipse(200,200,200,200);

stroke(0,0,255);
rect(width/2 ,height/2,width/2,height/2);

fill(0,255,0,128);
ellipse(0,height,400,400);
ellipse(width,height,400,400);
ellipse(width,0,400,400);
stroke(0,0,155);
line(0,0,width,height);
fill(0);
textAlign(CENTER);
textSize(12);
//text rulez ("text", width, height)
text("Hello professor!!",width/2 - 24,height/2);
fill(255);
text("This is a mess of shapes",width/2, height - 20);




hello world

Hello,
my name is cesar.
According to my parents I am an Aztec.
I used to play quick tunes like "I'm blue" and "Take on me."