INFO-I400 Topics in Informatics

Graphics, Animation, and Multimedia for the Web

Lab 1: Shapes and Colors

Overview

Create a canvas drawing with various shapes and colors.

Requirements

Script the canvas to draw a picture. Your picture should include:

Use correct HTML5 syntax (see the boilerplate example in Lesson 2: JavaScript Fundamentals).

Put a short “title” above your canvas and a caption below to explain what your picture is about (in case it is not obvious). You can use HTML like this for the purpose:

<h1>Picture Title</h1>
<canvas ...>
  Replacement text
</canvas>
<p>Picture caption</p>

Hints

Submission

Turn in the web page (HTML file) as an attachment in Oncourse Assignments. If you have extra files (for example, an external script or style sheet), attach them also. But if you have more than three (3) files, bundle them in a zip, tar, tar.gz, tar.bz2, or tar.xz file and just attach the bundle.

Scoring

TOTAL: 60 points