voila tout est dans le titre. j'ai cree une fenetre qui a l'ouverture affiche trois cercles de couleurs differante ( r, g , b). mais des que les trois sont afficher bin forcement sa s'arrete est-ce possible de les faire apparaitre a l'infinie.
voici un exemple.
Code : Tout sélectionner
Procedure cercle()
StartDrawing(WindowOutput(0))
For rayon=0 To 1
For rayon= 0 To 300
Circle(400, 300, Rayon,RGB(255,0,0))
Next rayon
Next rayon
StopDrawing()
StartDrawing(WindowOutput(0))
For rayon=0 To 1
For rayon= 0 To 300
Circle(400, 300, Rayon,RGB(0,255,0))
Next rayon
Next rayon
StopDrawing()
StartDrawing(WindowOutput(0))
For rayon=0 To 1
For rayon= 0 To 300
Circle(400, 300, Rayon,RGB(0,0,255))
Next rayon
Next rayon
StopDrawing()
EndProcedure
If OpenWindow(0, 0, 0, 800, 600, "test", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
If CreateGadgetList(WindowID(0))
cercle()
EndIf
EndIf
Repeat
EventID = WaitWindowEvent()
Until EventID = #PB_Event_CloseWindow
End
@++