SetLineWidth

BlitzMax Forums/BlitzMax Programming/SetLineWidth

Retimer(Posted 2008) [#1]
See image:



If the lines x2/y2's distance travels more horizontally, the end walls are vertical, while if it travels more horizontally, the walls are vertical.

Is there any way to 'trick' it into drawing the walls vertically every time, so connected lines (with setlinewidth 1+) can look proper?


GfK(Posted 2008) [#2]
How's SetRotation effect this?


Retimer(Posted 2008) [#3]
Same effect on the walls =/


Graphics 400,300, 0

Cls
SetBlend(lightblend)

SetRotation(-15)

DrawLine(50,50,80,300,False)
For Local i:Int = 1 To 20
	SetLineWidth(i+1)
	SetAlpha(0.05)
	DrawLine(50,50,80,300,False)
Next

SetRotation(-45)

DrawLine(150,50,180,300,False)
For Local i:Int = 1 To 20
	SetLineWidth(i+1)
	SetAlpha(0.05)
	DrawLine(150,50,180,300,False)
Next

Flip
WaitKey()


Before I started on this, I figured the ends would be more gradient like, or rounded.