Function reference

graphics.h documentation for C graphics programming

Use these standalone references when you need syntax, parameter behavior, runnable examples, and practical mistakes for classic BGI functions. Our reference pages cover shapes, colors, and fill styles to help you learn C graphics programming.

Phase 1: Shape primitives
Phase 2: Colors and Fills
Phase 3: Text, Pixels, Setup, Timing
Phase 4: Screen clearing and cursor movement

Drawing primitives

Texturing and palettes

Program control and precise drawing

Viewport refresh and connected path tools