• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

algorythm for makeing a line,

Cogman

Lifer
Hey, for a program I am writing I need to make a straight line to do pixel color comparisons along the line. Basically I want to make my line look like a line drawn from MS Paint. I'm just struggling to see the algorithm microsoft used to determine where to break and go up the line.

It looks almost like it is Divide the line into the shorter halves length and then go the longer half until it makes it to the destination (Wow, I hope you can understand this).

To get what I am seeing, open up MS paint and just use the line tool in a zoomed in grid and watch how the line is deformed to make it appear straight.
 
Ahh, thanks a lot. I'm glad there are people around here that know all these algorithm names. Thanks again.
 
Back
Top