CS 4722 - Computer Graphics and Multimedia
Module #1, Assignment #1Exercise #1The Square Program: Convert the above Square.html and Square.js program to a program that uses two sliders to modify the length and height of the square as shown below: Change the name of the files to InnerSquare.html and InnerSquare.js and change the color of the inner square to blue and the outer edge to red. Exercise #2The following 2DSierpinskiTriangle.html program creates one or more Red Sierpinski triangles. Modify the 2DSierpinskiTriangle.html HTML code and the 2DSierpinskiTriangle.js Javascript code so that the program uses a slider instead of an input textbox, and so that the color of the triangles change with each new number of divisions: Add a Comment block section to the top of your Javascript file in this assignment with the following information filled in using the following format: /*
* Course: CS 4722
* Section: .....
* Name: ......
* Professor: ......
* Assignment #: ......
*/
Be sure your program runs without error. DeliverablesTurn in the files:
Do this by uploading the file as an attachment to this Module's assignment drop box in D2L Brightspace. |