Media Computation Skills Lab

MTEC 1003

Lab 13 / Part 1 - Basic Canvas

In this lab week's lab, there will be no Python — only HTML and JavaScript animation!

Here in Part 1, you will be creating the following programs together in class:

  1. square
  2. five squares (in a row)

You will then have the choice of completing any 2 out of the 3 additional programs on your own:

  1. squarecircle
  2. customcircle
  3. alternating

Instructions

ALL OF THESE FILES MUST BE CREATED IN A LAB 13 REPOSITORY THAT YOU CREATE FOR THIS LAB!


square

Write a program that draws a square.

square


five squares (in a row)

Draw five squares using a for loop

five


Complete any 2 of the 3 additional programs below on your own & submit before this week's deadline:


squarecircle

Write a program that draws a square and a circle next to each other.

squarecircle


customcircle

Write a program that asks for a number and a color - red, green, or blue. It will draw a circle with that radius and color.

customcircle1

customcircle2

customcircle3


alternating

Draw a row of circles and squares.

alternating

MTEC 1003 - Media Computation Skills Lab