Skip to content

An Anti-Alised Thick Line: The Double Bresenham's Line

Notifications You must be signed in to change notification settings

ASMHSE/ThickLines-in-Assembly

Repository files navigation

An Anti-Alised Thick Line: The Double Bresenham's Line

Framework : ObjAsm C.2 - masters : Main Developer , Fork - working version 6 march 2024

This line use 2 times Bresenham algorithm: one for the line itself and other to calculate extreme lines, wich are prependicular to the main line.

Some remarks:

  • The width from this process is the true intended width, not cuts width like in some other thick lines.

  • To connect lines an additional element is used.

  • Lines drawing and connections happen in a buffer screen and you just can see the result.

  • Lines can be flat antialiased or a pipe (3D). This last is antialiased implicitly.

  • Compact version (for development) use UASM assembler builded with more macros levels capacity (I hope unroll code for other assemblers after additional tests).

Any sugestion or improvement is welcome!

thick5

About

An Anti-Alised Thick Line: The Double Bresenham's Line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published