Khan Academy classroom challenges
Challenge 1 |
Draw a city landscape with a series of buildings of different shapes. Use a combination of rectangles, triangles and ellipses to represent the buildings. Add some trees (simple: trunk and leaves). Do not add colour at this stage.
|
Challenge 2 |
Draw a rectangle using variables for the length and the side. Calculate the area of the rectangle. Use text(string, xPos, yPos) to display the area. Note that you will have to use the background(r,g,b) command to show the text (or use fill(r,g,b).
|
Challenge 3 |
Draw a vehicle (car, bike, plane - you decide). Make sure that you can change the size of the vehicle using just one parameter or property such as 'var size = 1'. Everything about the vehicle will depend on that one variable.
|