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

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

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

Post 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
my pb for chinese:
http://ataorj.ys168.com