Line Width
Monkey Forums/Monkey Programming/Line Width
| ||
Does Mojo have support for setting the drawline width? If so, how do I do it? If not, can anyone suggest an alternative? Thanks :) -Chris |
| ||
No. You could paint several lines parallel which creates ugly artifacts... |
| ||
Thanks Xaron, thought as much!Function DrawLineWidthTest:Void(X1:Float,Y1:Float,X2:Float,Y2:Float,Width:Float = 2, DrawStep:Float = 1) Local OX:Float = 0 - (Width / 2) Local OY:Float = 0 - (Width / 2) Local DX:Float = (Width / 2) Local DY:Float = (Width / 2) Local tY:Float = OY While tY < DY Local tX:Float = OX While tX < DX DrawLine(X1+tX,Y1+tY,X2+tX,Y2+tY) tX += DrawStep Wend tY += DrawStep Wend End Will have to do for now! |