News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Line-drawing routine

Started by NoCforMe, May 22, 2024, 02:08:47 PM

Previous topic - Next topic

Professor

This thread was rather nostalgic for me! I took a look at some old line-drawing code that I wrote circa 1993-94 for an animation of my IBM PS/2 computer, which ran on the MCGA graphics card of that computer. That code didn't draw anti-aliased lines, but it was some pretty tight, optimized code in less than 100 lines of 8086 assembler.

NoCforMe

You could post that code in our 16-bit forum if you like.
Assembly language programming should be fun. That's why I do it.

daydreamer

Quote from: Professor on August 02, 2024, 08:01:21 AM
Quote from: Biterider on August 01, 2024, 07:34:16 PMThat's fine for a 1 pixel wide line, but what about, say, a 10 pixel wide line?

Good point, Biterider. I've never really experimented with drawing thick lines. I guess my point was just demonstrating simple anti-aliasing. A wider line would presumably compute two lines, with the "fade-in" anti-aliasing only performed on the "top" line and the "fade-out" anti-aliasing only performed on the "bottom" line.
But 10 pixel wide,isnt it definition of polygon instead ?
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

NoCforMe

Quote from: daydreamer on August 02, 2024, 03:14:02 PMBut 10 pixel wide,isnt it definition of polygon instead ?

Theoretically, yes. Practically, no.
Assembly language programming should be fun. That's why I do it.