News:

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

Main Menu

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

Started by HSE, October 06, 2024, 05:13:18 AM

Previous topic - Next topic

HSE

Hi al!!

To solve some problems of some thick lines (like Thick Anti-Aliased Lines of arbitrary width) a different approach is requiered.

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.

The width from this process is the true intended width, not cuts width.



Like previously discussed, another problem is to connect lines. For that an additional element is used.



The drawing above is only to explain the process, because all happen in a buffer screen and you just can see the result.



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

Still work in progress  :thumbsup:

Note: Source code only for REAL MEN[tm]  :biggrin:

Regards, HSE

Note 2: binary is 32 bits


Equations in Assembly: SmplMath

NoCforMe

Assembly language programming should be fun. That's why I do it.

HSE

Hi all!

A more efficient process, 100% in a single line.

Updated in first post.

Regards, HSE.
Equations in Assembly: SmplMath