CSCI 250 Getting Started
String Art Program
Date Due:
Purpose: To become familiar with using the OpenGL API,
and with your C/C++ development environment.
Completion of this project ensures that for later projects any problems
will be with your code instead of with the compiler or operating system.
You are to write a program
that creates string art. You are going
to generate a polygon with n sides, where n is specified by the user, and in
addition, lines from the center of the polygon to each vertex. You should then subdivide each line into an
equal number of parts k, also specified by the user, as shown below for two of
the lines. In this example, both n and k
are 5.
Connect the points numbered
1, the points numbered 2, etc. for each line from the center to the two sides
that it connects to.
TurnIn: You should turn in a zip file containing your
source code, a screen capture of sample output, and a README file telling how to rebuild your program and run
it. You should also include any data
files necessary to create your sample output.
Extras: Have fun and get creative…use color, or
animation to make the output more interesting and dynamic. Experiment with the GLUT menu system. Add more interesting shapes than a single polygon. Enjoy!
For those of you who’d like
an example output, here is the output from a minimal implementation, with 6
sides and 10 divisions per line: