Grade 7 Science: Coding Project 3 – Animal Attack

This exercise is a project from Khan Academy’s Intro to JS: Drawing & Animation.  

The objective of this project is to make an animal (whatever your choice) and make it grow.  The animated video could not be uploaded to the blog.

var bodyX = 200;
var bodyY = 220;
var bodyW = 118;
var faceW = bodyW/2;

draw = function() {
background(207, 254, 255);
fill(240, 209, 36);
ellipse(bodyX, bodyY, bodyW, 106); // body?
ellipse(bodyX, bodyY+0, faceW, 47); // face?
};

Unknown's avatar

Author: sophiaelahirpc

10th Grade student in the Ron Paul Curriculum. Full-time teen writer living in Singapore.

Leave a comment

Design a site like this with WordPress.com
Get started