CSSE 351 - Computer Graphics
Rose-Hulman Institute of Technology
Computer Science and Software Engineering Department
Programming Assignment 1
This programming assignment is due 09 September 2022 and may
be worked on in pairs.
- Rename testline.html and testline.js from
problem set 0 pa1.html and pa1.js respectively and
modify them to demonstrate drawing:
- points,
- lines,
- triangles,
- quads, and
- polygons.
Your modifications should also demonstrate at least 2 of the
following:
You should use at least 3 different colors. Be creative and
generate an interesting image.
- Describe the effect or results of the following situations.
Provide the most general description possible and include your
answer in your source code:
- When drawing lines, 3 vertices are passed.
- When drawing lines, 4 vertices are passed.
- When drawing triangles, 4 vertices are passed..
- When drawing a triangle, a different color is associated
with every vertex.
- Are quads and polygons supported natively?
Clone your class repository (<your
username>@gitter.csse.rose-hulman.edu:/srv/git_repos/2223a-csse351-<your
username>).
Include your answers in your source code. You should place your files
(including any modified files) in the appropriate directory
(PA1) in your cloned class git repository and then commit
(add, commit and push) them.