Particles all over.
include "gp.inc"
OpenWindow 640,480,1
fo = LoadFont "verdana",24,1
string z= "HELLO AND WELCOME IN THE SUPER PROGRAMMING!", letter
sys x3DSterne[800]
sys y3DSterne[800]
sys z3DSterne[800]
sys fokus=160, xp, yp, i, tl, x
tl = len(z)
single y[44]
single angle[44]
For i=1 to tl
angle[i] = 360-i*(360/tl)
y[i] = 240
Next
For i=1 to 800
x3DSterne[i] = Rnd (1,440)
y3DSterne[i] = Rnd (1,380)
z3DSterne[i] = Rnd (1,500)
Next
While KeyDown(27)=0
ClsColor ARGB(25,0,0,0)
For i=1 to 800
xp = (x3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 5
yp = (y3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 5
DrawPoint (xp,yp, 2, ARGB(255,255,255,255))
xp = (-x3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 630
yp = (-y3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 470
DrawPoint(xp,yp, 2, ARGB(255,255,255,255))
xp = (-x3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 630
yp = ( y3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 8
DrawPoint(xp,yp, 2, ARGB(255,255,255,255))
xp = ( x3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 5
yp = (-y3DSterne[i] * Fokus) / (z3DSterne[i] + Fokus) + 470
DrawPoint xp,yp, 2, ARGB(255,255,255,255)
z3DSterne[i] = z3DSterne[i] -1
iF z3DSterne[i] <=0
z3DSterne[i] = 500
End iF
Next
For x=1 to tl
angle[x] +=1
if angle[x] = 360 then angle[x] =0
letter = mid(z, x ,1)
y[x] += sin(rad(angle(x)*4))
DrawText fo,2+x*14, y(x), letter, 0xFFFF0000
y[x] += cos(rad(angle(x)*2))
DrawText fo,2+x*14, y(x), letter, 0xFF00FF00
Next
Sync
Wend
CloseWindow()
I get the feeling, I am not welcome here!