Code: Select all
If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0, 0, 0, 400, 200)
SetGadgetColor(0, #PB_Gadget_BackColor, #Black)
If StartVectorDrawing(CanvasVectorOutput(0))
MovePathCursor(0,10)
AddPathLine(68, 0, #PB_Path_Relative)
VectorSourceColor(RGBA(146, 146, 146, 255))
StrokePath(1)
MovePathCursor(0,20)
AddPathLine(68, 0, #PB_Path_Relative)
VectorSourceColor(RGBA(146, 146, 146, 255))
StrokePath(2)
StopVectorDrawing()
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
