eh ben c'est pas violent la rotation je suis déçu

Cordialement
Code : Tout sélectionner
If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0, 150, 0, 250, 200)
CanvasGadget(1, 0, 0, 150, 200)
For i=0 To 8000 step 5 ; boucle test
If StartVectorDrawing(CanvasVectorOutput(0))
VectorSourceColor(RGBA(255, 255, 255, 255)) ; retabli fond blanc
FillVectorOutput()
RotateCoordinates(150, 100, i)
AddPathEllipse(150, 100, 80, 30)
VectorSourceColor(RGBA(0, 255, 0, 255))
StrokePath(10)
StopVectorDrawing()
EndIf
If StartVectorDrawing(CanvasVectorOutput(1))
VectorSourceColor(RGBA(255, 255, 255, 255)) ; retabli fond blanc
FillVectorOutput()
RotateCoordinates(75, 75, i)
MovePathCursor(100, 100)
For u = 1 To 4 ; construction d'un carré
AddPathLine(100, 50, #PB_Path_Default)
AddPathLine( 50, 50, #PB_Path_Default)
AddPathLine( 50, 100, #PB_Path_Default)
AddPathLine(100, 100, #PB_Path_Default)
Next u
VectorSourceColor(RGBA(255, 0, 0, 255))
StrokePath(10)
StopVectorDrawing()
EndIf
Next i
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf