Code: Select all
; CreateImage(0,256,256,32,#PB_Image_Transparent)
; StartVectorDrawing(ImageVectorOutput(0))
; VectorSourceColor(RGBA(0,0,255,255))
; AddPathCircle(128,128,90)
; FillPath()
; VectorSourceColor(RGBA(0,0,0,0))
; AddPathBox(0,0,128,256) ; <=========== Doesn't do anything
; FillPath()
; StopVectorDrawing()
;
; OpenWindow(0,0,0,256,256,"",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
; ImageGadget(0,0,0,0,0,ImageID(0))
; Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow
CreateImage(0,256,256,32,#PB_Image_Transparent)
StartDrawing(ImageOutput(0))
DrawingMode(#PB_2DDrawing_AllChannels)
Circle(128,128,90, RGBA(0,0,255,255))
Box(0,0,128,256,RGBA(0,0,0,0))
StopDrawing()
OpenWindow(0,0,0,256,256,"",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
ImageGadget(0,0,0,0,0,ImageID(0))
Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow