Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Paint Program

OpenGL and GLUT are used to create a paint program where the user can draw freely in multiple colours. Aside from freely drawing by clicking and dragging, the program uses Bresenham's algorithm to draw straight lines between two clicked points, rectangles between two clicks specifying the verticies, and circles with two clicks specifying center and radius.

User can also change the brush size by typing "-" to decrease or "=" to increase. By right clicking, there is a menu which has submenus for colour/shape customization, as well as an option to clear the screen.

See paintPic for an example: ScreenShot

You can’t perform that action at this time.