На главную

Назад

Кольцо - фейерверк
Кольцо - фейерверк

;Blitz3D

Graphics 1024,768

Global x0=512
Global y0=384
Global x=0
Global y=0

While Not KeyDown(1)
For n= 1 To 1000000
t = Tan(n)
t0 = zero(Tan(n))
t01 = 1/zero(Tan(n))
x = x0+Cos(n/10)*t+Cos(n)*200+Cos(n*10)*100
y = y0+Sin(n/10)*t+Sin(n)*200+Sin(n*10)*100
Plot x,y
Next
Wend

Function zero(i)
If i = 0 Then
Return 1
Else
Return i
EndIf
End Function
Hosted by uCoz