Empty path
Posted: Sat Jan 14, 2023 1:10 pm
For graphics that adjust to the window size, I got the error message "Cannot draw empty path!", which may be correct at this point, but not optimally worded in combination with IsPathEmpty(), I think. Or should IsPathEmpty() return a different result here?
Ralf
Code: Select all
StartPath(1)
MoveTo(1, 1, 1)
LineTo(1, 1, 1)
LineTo(1, 1, 1)
ClosePath(1)
If Not IsPathEmpty(1)
id=PathToBrush(Nil, {{ID=1, Color=#WHITE, X=9, Y=9}})
FreePath(1)
DisplayBrush(id, xpos, ypos, {Name="test"})
FreeBrush(id)
EndIf
WaitLeftMouse