This assignment will introduce you to the computer programming in Javascript using the Khan Academy materials.
Complete the Khan Lessons. This assignment assumes you have completed the lesson that takes you through the Khan Academy introduction to programming, drawing, and animation material. Your teacher will track that you did all of tutorials.
Complete the Following Steps.
var bodyX = 200; var bodyY = 220; fill(240, 209, 36); ellipse(bodyX, bodyY, 118, 106); // body ellipse(bodyX, bodyY-70, 59, 47); // facewill shift both ellipses if you change the value of bodyX and/or bodyY. Add a colored backdrop with at least two shapes (e.g. a sun) that are at fixed locations. After you get the animals to be drawn relative to the variables, change the six variables to have random values (use the documentation to discover how the random function works). A succesful program will have the animals appear at different locations every time you click the "Restart" button on the far right under the results pane in the Khan programming environment. Click fast and watch your animals dance around! Save this program at Khan with the name lastname_dancingAnimials.