Easy: Basic tri color teired pattern
-
mark each stitch - 1/1 for a single stitch 1/2 for a double 1/3 for a treble and 1/4 for a quad ( width / height )
-
note the color changes with an x at the end of the row then repeat the rows required for the height needed
-
allow users to chose sizing of blanket - prompt for height and width
-
displaying to the screen
-
displayCurrentSettings(width, height, blanketType, stitchType, numColors);
glClear(GL_COLOR_BUFFER_BIT); // Clear the screen
renderGrid(gridWidth, gridHeight);
renderPattern(blanketType, width, height, stitchType, numColors);
glFlush(); // Flush OpenGL commands
Copy the starting code using the code below:
cp /home/stu/dwelch/public_html/4350/lab8.cpp .
cp /home/stu/dwelch/public_html/4350/Makefile .