Draw line thickness question
Monkey Forums/Monkey Programming/Draw line thickness question
| ||
Is there a way to draw a line with a bigger thickness? |
| ||
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 |
| ||
@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: |
| ||
you could probably use poly's to draw the line. |
| ||
Yes, or us transforms to draw a rotated rect, but polys could allow you to draw rounded or square ended lines if required. |
| ||
Thank you guys! Best team :P |