Publié : ven. 19/juin/2009 16:58
en gratant un peu , tu pouvais faire 9 ligne flype!

Code : Tout sélectionner
InitSprite():X=GetSystemMetrics_(0):Y=GetSystemMetrics_(1):k=255
Macro R:Random:EndMacro::D=OpenWindow(1,0,0,X,Y,"",2160590849):j=k*4:u=10*j
v=10*j:w=2*j:sp=-10:l=10:n=5*j:cx=X/2:cy=Y/2:m=60:sh=0:Dim f(n):Dim g(n)
Dim h(n):OpenWindowedScreen(D,0,0,X,Y,1,1,1):For i=0 To n:f(i)=R(u)-u/2:
g(i)=R(v)-v/2:h(i)=R(w):Next:Repeat:StartDrawing(ScreenOutput()):For i=0 To n
h(i)+sp:If h(i)<=l:h(i)=w:f(i)=R(u)-u/2:g(i)=R(v)-v/2:EndIf:ux=(f(i)*m)/h(i)+cx
uy=(-g(i)*m)/h(i)+cy:sh=Int(k/w*-h(i)):If ux<X:If uy<Y:If ux>0:If uy>0
r=R(k)+1:t=R(k)+1:b=R(k)+1:Circle(ux,uy,1,RGB(r,t,b)):EndIf:EndIf:EndIf
EndIf:Next:StopDrawing():FlipBuffers():ClearScreen(0):Until WindowEvent()=16