

Code : Tout sélectionner
Global y2.f
;Pouf circle
Procedure DrawCircle(Parameter)
angle = 0
Repeat
If StartDrawing(WindowOutput())
; FrontColor(Random(255), Random(255), Random(255))
For k=0 To 300
x = 0
y = k
d = 1 - k
Plot(300+x, 300+y,1)
;x = 150 + 300 * Cos(Angle) + k
;y = 150 + 300 * Sin(Angle) + k
While y > x
If d < 0
d = d + 2 * x + 2
Else
d = d + 2 * (x - y) + 5
y = y - 1
EndIf
x = x + 1
Plot(300+x, 300+y,1)
Wend
; Delay(10)
Next
StopDrawing()
EndIf
Angle + 1
ForEver
EndProcedure
If OpenWindow(0, 0, 0, 1020, 700, #PB_Window_SystemMenu, "Bijour ^^")
CreateThread(@DrawCircle(), 0)
Repeat
Until WaitWindowEvent() = #PB_EventCloseWindow
EndIf