a. Where do you define the size of your canvas?

1504818626574

b. What numbers do you need to plug into fill() to get a bright turquoise? This Online Color Picker might help.

Since this Online Color Picker says so:1504818833453.jpg

c. Re-create the following image with code:

Download the painting and open it in Photoshop:

1504819391605

Use eyedropper tool to pick the colors and get all the color numbers:

 

Use ruler to measure the size of each blocks:

 

Use black color as the background color and here is the code:

function setup() {

  createCanvas(500, 500);

}

function draw() {

background(0, 0, 0);

  

  // RED

  fill(218, 23, 32);

  rect(128, 0, 378, 365);

  

  // BLUE

  fill(4, 87, 157);

  rect(0, 381, 107, 126);

  

  // YELLOW

  fill(255, 255, 0);

  rect(463, 453, 35, 54);

  

  // White 1

  fill(225, 224, 220);

  rect(0, 0, 107, 151);

    // White 2

  fill(225, 224, 220);

  rect(0, 182, 107, 183);

  

    // White 3

  fill(225, 224, 220);

  rect(122, 381, 323, 126);

  

    // White 4

  fill(225, 224, 220);

  rect(463, 381, 35, 51);

}

1504819864773.jpg

d.Re-create the following sketch: 1504902755491

1504902850999

 

Homework Week 1: self-portrait

Homework Week1:How computation applies on my work

 

Posted in ICM

One thought on “ Homework WEEK1: Take home quiz! ”

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s