News for hackers. Stuff that matters.
Re:How to draw ugly lines fast by jbay808 on Tuesday December 20, 2022 @09:16AM (#34066187)
Just an aside, but in addition to graphics, this kind of thing is also relevant to motion control applications, where you have some kind of trajectory that you need to follow and must discretize it into a series of servo motor coordinate positions for the axes of (e.g.) an XY gantry.

This needs to be correct, and very fast -- sometimes the computational burden can limit your machine's top speed before the mechanical limitations are reached.

Re:How to draw ugly lines fast by brianpaul on Tuesday December 20, 2022 @11:06AM (#34067827)
Bresenham originally developed the algorithm for drawing lines with a plotter (servos).