Draw line thickness question

Monkey Forums/Monkey Programming/Draw line thickness question

Raul(Posted 2014) [#1]
Is there a way to draw a line with a bigger thickness?


therevills(Posted 2014) [#2]
A handy function from Diddy:

Usage:
DrawLineThick(100, 100, 200, 200) ' defaults to 2 pixels thick
DrawLineThick(300, 300, 400, 400, 5) ' 5 pixels thick



Danilo(Posted 2014) [#3]
@therevills:
Unfortunately this does not work with alpha blending, because it overwrites pixels more than once.
Alpha blend more than one time, and the color gets almost solid, the thicker the lines is.
With alpha blending every pixel should be only written once, and AntiAliasing could make it even harder.

See example:



Supertino(Posted 2014) [#4]
you could probably use poly's to draw the line.


ziggy(Posted 2014) [#5]
Yes, or us transforms to draw a rotated rect, but polys could allow you to draw rounded or square ended lines if required.


Raul(Posted 2014) [#6]
Thank you guys!

Best team :P