//Brandon Hyun
//15104 Section B
//bhyun1@andrew.cmu.edu
//Project-03
function setup() {
createCanvas (640, 480);
}
function draw() {
//darkens the background as mouse gets closer (0,0) and lighten when the mouse gets closer to (640,0)
background(mouseX,mouseY);
fill(0);
noStroke();
//left upper corner chaos circle
//setting cordinates of where the circles are going to be drawn.
randomXlocation = random (width/2 +1);
randomYlocation = random (height/2 +1);
//drawing the circles with the cordinates and the size of the circle.
ellipse (randomXlocation, randomYlocation, 50,50);
//right lower corner chaos circle
//setting cordinates of where the circles are going to be drawn.
randomXlocation = width/2+ random (width/2 +1);
randomYlocation = height/2+ random (height/2 +1);
//drawing the circles with the cordinates and the size of the circle.
ellipse (randomXlocation, randomYlocation, 50,50);
}
For this project, I wanted to create something that had a simple concept but complicated visuals. While I was working, I wanted to express the emotion of hecticness that could only be hidden by shadows.
When I was working on this, I had a hard time in the beginning because I wasn’t really sure what variables I needed this code to work.
I think I figured it out.