Generate OpenGL Figure Plotter Online
Draw lines, circles, and polygons on a grid and get the points plus ready-to-run OpenGL C code. Use OpenGL Figure Plotter in your browser with no signup, no daily limit, and no backend processing for tool input.
Problem
You need a quick generated output for testing, documentation, examples, or setup work.
What to do
Generated output is best for demos, fixtures, placeholders, and setup tasks. Review the generated result before using it in production code or documents.
- 1Open OpenGL Figure Plotter and set the required options.
- 2Generate the output and inspect it.
- 3Copy or download the generated result.
Use the browser tool
OpenGL Figure Plotter is a free, browser-based tool for computer-graphics coursework: draw points, lines, triangles, rectangles, circles and polygons on a labelled coordinate grid, and get back both the exact integer vertex list and ready-to-compile OpenGL C code. It exists because the tedious part of a CG lab is never the algorithm — it is working out which coordinates draw the figure you sketched on paper, then typing forty glVertex2i calls without a typo. Draw the shape, read the points, copy the code.
People also ask
- Does this generate the whole OpenGL program?
- It generates the drawing calls — the glBegin/glVertex2i/glEnd block for your display function. You supply the window setup (GLUT or GLFW) and the gluOrtho2D projection; the tool tells you the coordinate range to match.
- Why are coordinates integers?
- Because CG lab work is raster work — glVertex2i takes integers, and integer lattice points are what the Bresenham, DDA and midpoint algorithms are defined on. Clean integers also make a hand-written report checkable.
- Which glBegin mode does each shape use?
- Points use GL_POINTS, lines GL_LINES, triangles GL_TRIANGLES, rectangles GL_QUADS, and polygons GL_POLYGON. Circles are emitted as a point or line loop approximation, since OpenGL has no circle primitive.

