Code: Select all
StartPath(1)
LineTo(1,100,100)
DebugPrint(IsPathEmpty(1))
DrawPath(1,0,0,#YELLOW)
In this case I cannot check if the path is drawable.
Code: Select all
StartPath(1)
LineTo(1,100,100)
DebugPrint(IsPathEmpty(1))
DrawPath(1,0,0,#YELLOW)
See: StartPath() docOnce the new path is created, you should first define a current point for the path by calling the MoveTo() command. After that, you can start adding vertices to the path
Code: Select all
SetFillStyle(#FILLGRADIENT,#LINEAR,#RED,#YELLOW)
SetFormStyle(#EDGE,#WHITE,2)
SetFormStyle(#ANTIALIAS)
SetFont(#SANS,50)
StartPath(1)
MoveTo(1,0,0)
AddTextToPath(1,"M")
ClosePath(1)
DrawPath(1,#CENTER,#CENTER,#WHITE,{scalex=2,scaley=2})
WaitLeftMouse