Tuesday, April 28, 2020

fifth hour of coding

In this hour I continued on my journey to complete computer programming. After I finished doing the text and strings lesson I went onto the next lesson which was functions. in this section I learnt how to make my code more reusable by grouping it into functions. after watching a quick video I started my first challenge which was to create "Hi Joel" on a randomly generated spot on the canvas. Heres the result
after completing that challenge I was asked to make moles show up in holes using functions. all i had to do for this one was make the function and call upon it so they showed up. this one was very easy.
now that I completed that challenge I went on to fixing math expressions. (not really) i had to make the calculator code do the right thing. the math was messing up because the functions werent writtin right. after I changed them the challenge was complete!
I was now off to my final challenge using functions. now Im not gonna lie to you I cheated on this one. all the requirements were was to make the lonely fish less lonely by adding more fish of different colours. so thats all I did. I drew some ellipses and added triangles to them to make fish. and BOOM I was done the hour

What I did this hour
continue computer programming by learning about functions.
Specific things I learnt this hour
create randomly generated text using functions. like "var moving"
What I will do next hour
i have now completed the functions lesson and will move onto the next lesson. (I haven't even checked what it is yet)

fourth hour of coding

In the beginning of this hour I continued learning computer programming. the next step in the course was to learn how to display text on the canvas. to do this i had to learn a couple things like learning the command "text" after learning that command I started my first challenge. it started easy by making me write a list of 3 of my favorite foods. heres what i chose for my foods!
My next challenge using text was to use mouse interactions and text. this challenge was to make an ellipse and wherever the mouse went the dot went. BUUUT wherever the dot went it would show the coordinated of the dot. to do this I just had to use what I learnt earlier in the course but add a text to it. heres the result! (btw my mouse was just at the bottom of the canvas when I used the snipping tool)
My last challenge in the text part of computer programming was to make an ad for anything! the requirements was to use three texts, and to try my best to create that thing. I also added a background cuz I could. heres my ad!
I only had about 10 minutes left so I decided to stop there. This hour was fairly successful as the course is getting harder. especially that mouse interaction one I don't know why I had so much 
trouble on that one I just did.anyway.
What I did this hour
moved onto the text and strings portion of the course
Specific things I learnt
how to input text into the canvas using "text" and how to combine it with other commands
What I will do next hour
move onto the next lesson which is functions. I hope to finish that lesson but not sure as the codes are getting harder and longer

Saturday, April 25, 2020

Third hour of coding

In this hour I moved on from variables to mouse interactions. this part of coding are ways for your mouse to change the image. to do this i had to use variables called "mouseX" and "mouseY". my first challenge to complete using mouse interactions was to take an apple and wherever the mouse went a white circle went through the mouse to make it look like its eating the apple. heres the code and the result of that first challenge.
  after I finished that challenge I was proposed with another challenge that you had to use mouse interactions in another way. this challenge was to make many little circles that were a color that followed your mouse. I had to use a stroke command and more variables. here's what the result was. I wrote "poopy" out of the circles that were following my mouse.
after I learnt how to use code for mouse interactions the course threw at me a bonus part which was resizing shapes using variables. to do this I had to learn how to use math expressions in code.  in this challenge I had to make a variable so that the eyes of the brown bear moved and changed size at the same time. here's the result of the challenge
now that I learnt how to use math expressions and use variable i was posed with a challenge where i could make whatever animal i wanted out of the shapes they gave me. heres the shapes they gave me
and heres what I made of out them
and that concluded my third hour of coding. 
Main parts I learnt during this hour
how to use mouse interactions with code, and how to use math expressions
Specific things I learnt
using variables like "mouseX and "mouseY" and using math expressions like "var earSize=faceSize*1/3;" 
What I will do next hour
continue through the computer programming course. I think the next lesson is text and strings in code.


second hour of coding

For my second hour of coding I moved onto learning about variables.
variables are values that can change. I first watched a couple videos of how to use variables in code and I was off doing my first challenge using variables the challenge was to create a variable for the eyes of a bucktooth bunny so if i changed the value of the variable it would change the size of both the eyes together. heres the result of the first challenge
Next was another challenge where I had to make a variable for the location of frogs eyes. changing this variable would change both of the frogs eyes at the same time. heres what the challenge ended as
after I learned about variables I moved onto animations. animations were tied together with variables.
my first challenge using animations was to make a sunset with the sun increasing bigger and bigger into the screen. heres a screenshot of the code and the sun fully covering the screen after the animation took place.
after I learnt how to make the sun get bigger and bigger it was now time to make clouds that moved away from the sun as the sun got bigger. heres the result of that challenge
and that was the main parts of the hour of coding. of course i had to watch videos and learn how to complete the challenges in between but that was it. 

main parts of the second hour
learning what what variables were and starting using them
Specific things i did
changed size and position of things using variables like "var xPos = 50;"
what i will do next hour
continue on computer programming, i think the next lesson is learning interactive programms.





Wednesday, April 22, 2020

First hour of coding

I chose to do khan academy for my 10 hour learning process of coding. in the first hour I chose to do computer programming. during this hour I started to learn how to create shapes. after watching a couple videos on how you should label your shapes using "//", and and learning how to create circles I went to my first challenge which was to draw a simple snowman. here's a shot of my first challenge complete!  
after completing that challenge I moved onto adding to that snowman using different shapes. next challenge was to give that snowman arms. here the result!
after learning how to give the snowman arms i had to watch a quick video on how to give your scene color using "fill(...,...,...)! after watching that video I moved onto my next project which was creating a sunny day for the snowman. I made the background blue, the sun yellow, and the ground green(which makes no sense for a snowman but anyway) heres what it turned out like).
once I proved I was able to create shapes, and add colour to those shapes I had a cool challenge. the program gave me a plate, and told me I had to put dinner on the plate. I could put anything so i decided to make pizza
and that concluded my first hour of learning how to code.

What I did in the hour
got on to khan acadamy and started computer programming. started computer programming coding
Specific things i learnt
learn how to make shapes ie; ellipse (...,...,...) and how to colour those shapes ie; Fill(...,...,...)
What i will do next hour
continue my journey on computer programming