Page 1 of 1

Hope to support each other between setOrigin() and plot()

Posted: Tue Apr 30, 2024 1:03 am
by gurj
Hope to support each other between setOrigin() and plot()

now,plot does not accept negative coordinates:

Code: Select all

If OpenWindow(0, 0, 0, 200, 200, "2DDrawing Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 If CreateImage(0, 200, 200) And StartDrawing(ImageOutput(0))
  
  SetOrigin(99, 99)
  Plot(-9,9,#Red)
  
  StopDrawing() 
  ImageGadget(0, 0, 0, 200, 200, ImageID(0))
 EndIf
 
 Repeat
  Event = WaitWindowEvent()
 Until Event = #PB_Event_CloseWindow
EndIf