Tuesday, February 16, 2016

We looked at the barebones of the code I have and decided that we need to use different ways to make sure that the pong was accurately following the ball so I can manipulate it more closely, most likely using drifting to make it look smoother

Tuesday, February 9, 2016

Custom Function issues

I tried to do the assignment but I ran into a couple of issues:

    void setup() {
 
   size(2000, 1900);
 
   smooth();
 
  }
 
  void draw() {
 
   background(0);
 
   randomSeed(0);
  for (int i = 65; i < width + 20; i += 40) {
  int gray = int(random(0, 102));
  float scalar = random(0.25, 1.0);
  snowman(i, 110, gray, scalar);
 
   }
 
  }
      void snowman (int x, int y, int z, float s){
        translate(x,y);
        noStroke();
    ellipse(250,350,300,200);
    ellipse(250,250,250,150);
    ellipse(250,150,150,150);
    stroke(67,13,3);
    strokeWeight(5);
    fill(67,13,3);
    line(150,220,50,220);
    line(50,220,30,200);
    line(50,220,30,220);
    line(50,220,30,240);
   
    line(350,220,450,220);
    line(450,220,470,200);
    line(450,220,470,220);
    line(450,220,470,240);
   
    ellipse(275,130,10,15);
    ellipse(225,130,10,15);
   
    ellipse(250,210,10,10);
    ellipse(250,235,10,10);
    ellipse(250,260,10,10);
    fill(255);
    arc(180, 150, 200, 60, 0, PI/3);
    strokeWeight(1);
    fill(255,94,0);
    triangle(250, 160, 250, 150, 200, 170);
 
      }
   
       














The main issue is that I can't make it into different sizes, might be something wrong with my for loop.

Monday, February 1, 2016

int shapeSize = 10;

void setup()
{
  size(500, 500);
}

void draw()
{
  background(255, 255, 0);
  //enable mouse setup
  x = mouseX;
  y = mouseY;
  //color circles
  fill(255, 230, 20);
//create circles
  ellipse(x, y, sha
peSize, shapeSize);
  ellipse(x - shapeSize, y, shapeSize, shapeSize);
  ellipse(x + shapeSize, y, shapeSize, shapeSize);
}

Monday, January 25, 2016

Simple Static Scene

//parameters of canvas
size(800, 600);
//set background color
background(255, 255, 255);
point (300, 300);
point (400, 300);
//set the circles
ellipse(300, 300, 20, 20);
ellipse(400, 300, 20, 20);
ellipse(500, 300, 20, 20);
ellipse(600, 300, 20, 20);
//fill in color for following shape
fill (255, 255, 0);
//draw pacman shape with slice in middle
arc(200, 300, 40, 40, radians(30), radians(320));
//thicker lines for future lines drawn
strokeWeight(10);
line(0, 330, 800, 330);
strokeWeight(10);
line(0, 270, 800, 270);


//put in text
textAlign(CENTER);
fill(0);
textSize(25);
text("Waka Waka Waka",width/2,360);

Thursday, January 21, 2016

Hello world!

public class HelloWorld {

    public static void main(String[] args) {
        
        System.out.println("Hello, World");
    }

}

Hello, I'm Laenzio Garrett and I'm a Computer Science major.  I hope to learn more about visual programming through this class.