microZEUS
The whole stack, hand-drawn.

◄ Wiki / Graphics

Bresenham

A classic algorithm that draws a straight line on a pixel grid using only integer addition — no slow division or floating point.

Drawing a line between two points requires deciding which pixels to light up along the way. Bresenham's algorithm tracks an integer error term and steps one pixel at a time, choosing the closest grid position without ever computing fractions. It is fast and exact, which is why it still underpins line rasterization; a stippled variant simply skips pixels in a pattern to produce dashed lines.

See also

  • blitA fast bulk copy of a rectangular block of image pixels from one place to another, optionally scaling it.
  • command bufferA recorded list of GPU commands that you build up and then submit for the graphics card to execute.