← All projects

Straight Line Plotter

July 12, 2021 Python

Overview

A pure-Python (no NumPy) implementation of a line-drawing algorithm — given two points, it returns the array of integer grid points that form the straight line between them. A from-scratch take on the classic Bresenham-style rasterisation problem.

AlgorithmsGraphics