CS465 - Assignment I - Barış Poyraz

INFORMATION

This assignment is prepared for CS 465 - Computer Graphics course using WebGL and Javascript. The aim of this assignment is mainly to generate Sierpinski's Carpet with upto 5 iterations. Additional capabilities of the program are implemented with respect to the assignment information. Below, there are descriptions of the functionalities with respect to the user interface:

Number of Iterations:

It displays the Sierpinski's Carpet for 1-5 iterations

Background Color:

It changes the background color of the canvas. Default: White

Foreground color:

It changes the foreground color of the canvas. Default: Red

Save the Sierpinski Carpet:

It saves the current state of the sierpinski carpet, stores them in a text file and downloads it.

Select File:

It takes a text file as input and generates the previous state of the program according to the text file

Mode of Displaying the Fractals:

The fractals can be displayed by using either Filled Polygons option, or with Lines option. Default: Filled Polygons

Oops ... your browser doesn't support the HTML5 canvas element

Number of Iterations: 1

Background Color

Foreground Color

Save the Current State

Load the Previous(Stored) State

Display the fractals using: