for i : (255 div 2) .. 255
RGB.SetColor (i, 255, i * 2, 255)
end for
RGB.SetColor (128, 75, 1, 75)
for i : 1 .. 255
RGB.SetColor (i div 2, i, 1, i)
end for
RGB.SetColor (black, 255, 255, 255)
View.Set ("offscreenonly")
colorback (black)
const maxtext := 30
const textlong := 10
const speed := 20 %the more the slower
const textchange := 30
const maxz := 70
const minz := 10
const textmove := false
type mtext :
record
text : string
y : real
size, x, font, tempy : int
end record
var textarray : array 1 .. maxtext of mtext
color (9)
procedure newtext (var textarray : mtext)
for i : 1 .. maxtext
textarray.size := Rand.Int (minz, maxz)
Font.Free (textarray.font)
textarray.font := Font.New ("serif:" + intstr (textarray.size))
textarray.x := Rand.Int (1, 640)
textarray.y := 400
textarray.tempy := 400
textarray.text := ""
for ii : 1 .. textlong
textarray.text += chr (Rand.Int (65, 90))
end for
end for
end newtext
procedure draw (var textarray : mtext)
if textmove then
if textarray.tempy - textarray.y >= (textchange * (textarray.size / maxz)) then
textarray.tempy := round (textarray.y)
var t := ""
t := textarray.text
textarray.text := chr (Rand.Int (65, 90))
for ii : 1 .. textlong - 1
textarray.text += t (ii)
end for
end if
end if
textarray.y -= textarray.size / speed
for ii : 1 .. textlong
Font.Draw (textarray.text (ii), textarray.x, round ((textarray.y) + (ii * textarray.size)), textarray.font, ii * (255 div textlong))
end for
end draw
for i : 1 .. maxtext
textarray (i).font := Font.New ("serif:6")
newtext (textarray (i))
end for
loop
for i : 1 .. maxtext
draw (textarray (i))
end for
for i : 1 .. maxtext
if textarray (i).y <= 0 - (textarray (i).size * textlong) then
newtext (textarray (i))
end if
end for
View.Update
delay (1)
cls
exit when hasch
end loop
|