I wished to do the same with two arcs.
Is this possible?
The manual seems to indicate that it only works with lines and circles.
Can anyone help, please?
I've included my test which the first part does not work.
The second part seems to indicate some anomaly with #PB_Path_Connected, maybe.
Code: Select all
If OpenWindow(0, 0, 0, 800, 600, "#PB_Path_Connected, tests", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0, 0, 0, 800, 600)
If StartVectorDrawing(CanvasVectorOutput(0))
;<> Make a continuous path from arc1 to arc2
; Appears to get the join wrong and produces a spurious line beneath
VectorSourceColor($ff0000ff)
AddPathCircle(200, 200, 100,180,0)
AddPathCircle(250, 200, 50, 0, 180, #PB_Path_CounterClockwise | #PB_Path_Connected)
StrokePath(10)
;<> StrokePath() should start a new path, yet the new arc is joint to the path above.
; Note that the join of the two arcs on the right is correct.
; I would prefer the neater join made by a connect path.
AddPathCircle(400, 200, 100,180,0)
AddPathCircle(450, 200, 50, 0, 180, #PB_Path_CounterClockwise)
StrokePath(10)
StopVectorDrawing()
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf