# More Planning and Plotting

Fun Fact: I found a spot of discoloration on my face and I spent 15 mins in the morning trying to figure out what it was. I almost missed my train cause of it.

Our career portion of the class today focused on our job search methods and what we would need to meet the criteria for different professional settings. We did job searching on some provide websites including Uncubed Glassdoor, and Hackerrank.

We cover that in this blog post assignment.

During the coding portion of our class, we got to present and demo the homework we worked on the night before. During the presentation Zein presented his work which use operators ( i.e: +, -, *, /) to create movement within his display.

Professor D then asked us to join into group of two and work on creating some new with the code that Zein provided us with. Jonathan and I really didn’t plan out anything concrete with our project. We both were interested in understanding the movements of the objects in our display.

Playing around with the code helped me understand the real usage of operators and variables. Knowing what to call in the function and what operator to use can produce some really awesome ideas.

```</pre>
//global variable :
//float x = 250; //declaring a variable which will be used for moving shapes on x axis
float circleDiam = 300;
float y = 200;

//to setup and change size of canvas:
void setup() {
size(500, 500); //sets the (width, height)
background(100, 150, 180); // uses (R, G, B) colors to set background color of canvas
//this is a local scope variable only known within this function
}
//to draw components in canvas
void draw() {
ellipse(250, y, circleDiam, circleDiam); //draws a circle (x-coordinate, y-coordinate, width, height)
fill(125, 0, 125); //adds red color, now purple
y+= 1;
circleDiam-=2;
//circleDiam = circleDiam - 1;
//circleDiam -= 1; ----shorthand-----
//line(250, 250, 355, 355); //draws a line from the center of ellipse (x1, y1, x2, y2)
rect(y, 100, 200, 200); //sets (x, y, width, height) for drawing a rectangle
//rectangle will overlap ellipse cuz its second in command
//rectangle and line will move on x-axis at a rate of 1 frame per second
stroke(100, 60, 150); //gives a light blue outline on all three shapes;
}
<pre>```

For homework tonight, we were given a folder that contained 15 different projects. All of the projects needed to be redone with added comments and changed to something different that we created. I got started on these projects for my homework.

The Static Sketch

```</pre>
/*
Demonstrates a basic static sketch.
By Dawn C. Hayes October, 2017
*/

line(10, 75, 80, 10);
// The line runs at a diagonal

point(0, 0);
//The point is almost center with canvas

ellipse(22, 45, 20, 20);
// circle sit to left of canvas

rect(60, 35, 25, 20);
// rectangle sits towards the right of canvas
<pre>```

Basic Active Sketch

```</pre>
/*
Demonstrates a basic active sketch.
By Dawn C. Hayes October, 2017
*/

void setup() {
size(600, 400);
//canvas size
}

void draw() {
background(250);
//background color with only one value

line(10, 75, 80, 10);
// The line runs at a diagonal

point(0, 0);
//The point is almost center with canvas

ellipse(22, 45, 20, 20);
// circle sit to left of canvas

rect(60, 35, 25, 20);
// rectangle sits towards the right of canvas

}
<pre>```
```</pre>
/*
Demonstrates color.
By Dawn C. Hayes October, 2017
*/

float circleDiam = 100; //variable size of the circle
float xpos = 300; //x-coordinate variable of the circle
float ypos = 200; //y-coordinate variable of the circle
float bgcol = 0; //background variable color
float rCol = 190; //variable color red
float gCol = 255; //variable color green
float bCol = 90; //variable color blue
float alph = 125; //retracts the alpha value from color

void setup() {
size(600, 400);
//canvas size
}

void draw() {
background(bgcol);
//canvas color

noStroke();
//eliminates the stroke of the shape

fill(rCol, gCol,bCol, alph);
//creates purple/lilac color inside shape

ellipse(xpos, ypos, circleDiam, circleDiam);
//the circle sits in the middle of the canvas
}
<pre>```

I tried to attend a meet up for the Tech Event requirement. I was scheduled to meet at the Cafe Bene with the meet up group. I was not able to because the coffee shop closed down and was replaced with a restaurant. The group still meets up there but I went to the coffee shop at the next nearest location (which was 34th st!). I ended up not making the event and getting home too late to continue coding my work.

Thats what it looks like to burn that midnight oil.