Tuesday, June 20, 2017

 The last week we have been working a lot on a page called Khan Academy. Its a page about programming. Yes programming sounds a littel scary but actually it was very simple. The page work like this. There were different challenges we need to do , and for each chanllenge you get points for it. Before each challege there is a video explaining who to do several things that after you have to do it on your own. There were also documents that explain it to give you more information , that was great so you could understand the topic very good.The challenges were dreawing some stuff with  some codes . After compleating several challenges you have to do 3 different projects. For one procejt you have to draw a self-portrait for other a wild animal and for the other a snowman. For have a perfect project you have to use all the concepts you learn in the challanges. 



Challenge: Waving Snowmann



















rect(0,326,404,71);
ellipse(200, 300, 150, 150);
ellipse(200, 200, 100, 100);
ellipse(200, 120, 75, 75);
line(160,200,92,100);
line(240,200,306,100);

Project: Super Snowmann 




















background(21, 132, 217);
// The ground

fill(25, 232, 56);
rect(0, 300, 400, 100); 

// The sun
fill(255, 251, 0);
ellipse(80, 64, 100, 100);
// simple snowman
fill(202, 235, 252);
ellipse(200, 300, 150, 150);
ellipse(200, 200, 100, 100);
ellipse(200, 120, 75, 75);

//arms

line(163,200,94,134);
line(240,200,306,134);

//eyes
fill(255, 0, 255);
ellipse(185,108,11,12);
ellipse(215,108,11,12);
//mouth
fill(255, 0, 0);
ellipse(200,139,32,4);

//nose

fill(232, 151, 30);
triangle(145,128,201,130,200,117);

//hat
strokeWeight(7);
line(243,94,155,91);
fill(15, 9, 9);
rect(164,32,70,55);
//points
fill(204, 20, 207);
strokeWeight(7);
point(200, 195);
strokeWeight(5);
point(200,176);
strokeWeight(9);
point(200,217);



For drawing this amazing project we need codes . A code is what we use to draw this different figures. For exaple if you want to draw a rectangle you write rect(coordinates); and the you have your rectangle. With out the (;) it wont draw your figure because its like it is not confirm your code. In case you forgot to write it, it will apeare a poster talling you.



If you want to add a littel color to your drawing is actually really simple. You just have to write the right code that we use to color things. The code is fill(3coorfinates); and you have your color. If you change the coordinates your color will change. The color code have to been witen before the figure code , if not it wont appear the color on your shape.



For each challenge and project you get points and when you have a certain amount of point you get badges. Thats actually really great becuase it cause you want to do more challenge so you can earn the points. I have got 13000 points and 7 badges I am really happy about it because I do have a lot of pionts , thats why I did everything and I did not skip any step. With the point you can also change you avatar. 


So hire is a simple video tutorial about who to create a simple snowmann on Khan Academy. Hope you enjoy it 

No comments:

Post a Comment