failing vector graphics

Found an issue in SpiderBasic ? Please report it here !
User avatar
William Van Hoecke
Posts: 39
Joined: Tue Oct 22, 2019 12:09 pm

failing vector graphics

Post by William Van Hoecke »

A whole lot of wrong behavior here
Canvas is shrinking at every loop ????
lines and circles are moving at wrong rate ????
lines and circles are not even moving at same rate ????
lines and circles are are growing at every loop ????

Code: Select all

OpenWindow(111,0,0,1003,712,"TEST",#PB_Window_BorderLess)
CanvasGadget(222,5,5,993,702,#PB_Canvas_Border)
  
For tmp.i = 0 To 200 Step 20  

  StartVectorDrawing(CanvasVectorOutput(222))
    AddPathCircle(tmp,tmp,10) 
    VectorSourceColor(RGBA(200,200,200,255))
    FillPath(#PB_Path_Preserve)
    VectorSourceColor(RGBA(0,0,0,255))
    StrokePath(3)
  StopVectorDrawing()

  StartVectorDrawing(CanvasVectorOutput(222))
  MovePathCursor(tmp,tmp)
    AddPathLine(100,0, #PB_Path_Relative)
    VectorSourceColor(RGBA(0,0,0,255))
    StrokePath(3)
  StopVectorDrawing()

Next tmp.i
should look like picture in the link

https://photos.app.goo.gl/LwD4Bfjr8wdikDvZA