Sunday, April 26, 2020

10 Hours of Coding-Intro to JS: Drawing and Animation-Part 6





In this hour I started the lesson "Animation Basics".I completed
two challenges. One was the "Exploding Sun" and the other 
was "Parting Clouds.


I learned how to animate code using "draw = function() {};.
To make an animation you use this code. Anything you put
between the code will repeat, therefore becoming an animation. Then 
to make the size get larger or for the object to move I used X-=;. You put
a number after the "=" and it makes it that much bigger every time.

In the next hour I will be finishing the "Animation Basics" lesson.
Parting Clouds Animation

Parting Clouds extra code
Exploding Sun Animation





Friday, April 24, 2020

10 Hours of Coding-Intro to JS: Drawing and Animation-Part 5







In this hour I completed the lesson of "Variables." I finished 
the Funky Frog challenge.


I learned how to use the "var" code in more depth but this time 
it was for changing the position and not the size. It can be used 
for the values of x and y as seen in the code below. I used this for 
the frog so I could move the whole thing at once instead of having
to move each part of the frog.

In the next hour I will be starting the "Animation Basics" lesson.







10 Hours of Coding-Intro to JS: Drawing and Animation-Part 4






Today I started the lesson of "Variables." I finished 
the Bucktooth Bunny challenge.


I learned how to use the "var" code. This makes it easier to change
the size of certain shapes with one command. I used it to change the eye sizes 
and the teeth sizes. For the eye size I used "var eyeSize" then "eyeSize = 40"
For the teeth I did "var toothSize" and "toothSize = 60".

In the next hour I will be finishing the "Variables" lesson. The 
last challenge in this lesson is "Funky Frog."






Thursday, April 23, 2020

10 Hours of Coding-Intro to JS: Drawing and Animation-Part 3






Today I completed the lesson of"Colouring."
I didn't learn any new code but perfected the ones
I learned in the previous lesson.

I used my skills from the previous lesson which were
 how to use the "fill" which is used to add colour
 to the different shapes, how to use "strokeWeight" 
to adjust the thickness of the shape. Also I used "background" which 
adds a rectangle that covers the whole box.

In the next hour I will be working on the "Variables" lesson. The 
first challenge in this lesson is "Bucktooth Bunny"






Thursday, April 16, 2020

10 Hours of Coding-Intro to JS: Drawing and Animation-Part 2






Today I completed part of the next lesson which 
is "Colouring." I learned how to use code to fill in 
shapes and adjust the thickness of them as well.

I learned how to use the "fill" which is used to add colour
 to the different shapes. I also learned how to use "strokeWeight" 
to adjust the thickness of the shape. Also I used "background" which 
adds a rectangle that covers the whole box.

In the next hour I will be finishing the "Colouring" lesson. The 
final project in this lesson is "What's for Dinner?"






Wednesday, April 15, 2020

10 Hours of Coding-Intro to JS: Drawing and Animation-Part 1





Intro to JS: Drawing and Animation

I chose Khan Academy and the course I chose is 
"Intro to JS: Drawing and Animation." I completed the 
first lesson which was "Drawing basics." I learned how to 
use code to create drawings and shapes.

I learned how to use the "ellipse" code to create circular 
shapes. Also, I learned to use "rect" to make rectangular 
and square shapes. Lastly, I learned how to use "line" to 
create lines. With these commands I ended up creating a 
snowman and later a snowman waving.

In the next hour I am going to work on the second 
lesson which is "Colouring with Code." In this lesson I
 will learn how to add colour with code.
Starting my first project: The Simple Snowman
I made my first mistake which was an easy fix.
I finished the Simple Snowman.



I decided the snowman was to simple so I added some buttons.

This is the finished version of my waving snowman. I added some colour to the ground.