Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Slower" Line Drawing Example
#3
Pretty standard algorithms for line drawing on a computer. The linelow and linehigh are in there because you have to  account for the impact of quadrant shifts on the slope of a line. If you just use built in line statements you just don't see it.  The poster asking the question about how to slow down line-drawing to a segment or even pixel by pixel and had no idea at all how it could be done. The algorithms will work fine and dandy in text mode too. Not everyone is coming to QB64 with the same depth of computing and graphics knowledge. I used to program my own filters for Photoshop, Freehand, and Illustrator with postscript and C/C++ before they were as feature rich as they are today but  would often pop a simple algorithm into basic  (usually powerbasic at the time because it had pointer support) before moving on to the serious code.
Reply


Messages In This Thread
"Slower" Line Drawing Example - by James D Jarvis - 05-13-2023, 02:41 AM
RE: "Slower" Line Drawing Example - by mnrvovrfc - 05-13-2023, 08:41 AM
RE: "Slower" Line Drawing Example - by James D Jarvis - 05-13-2023, 03:56 PM



Users browsing this thread: 1 Guest(s)