Line Drawing

Given a line segment with endpoints (x0,y0),(x1,y1)(x_0, y_0), (x_1, y_1) and a discrete graphical medium (like pixel-based displays and printers), draw/approximate the line segment on the medium, potentially with antialiasing.

Parameters

  • nn: number of pixels the line goes through

Related Problems


Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 5 of 5 algorithms

See more
Xiaolin Wu's line algorithm1991O(n)O(n)O(1)O(1)
Gupta-Sproull algorithm1981O(n)O(n)O(1)O(1)
Bresenham's line algorithm1965O(n)O(n)O(1)O(1)
Naive algorithm1940O(n)O(n)O(1)O(1)
Digital Differential Analyzer1940O(n)O(n)O(1)O(1)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table