Code: Select all
' LED Scanner by neil
WindowTitle "LED SCANNER"
Screenres 542,80
Dim As String key
Dim As Short i
Dim AS UByte c
c = 11 'color
Sub Ers
Dim As short j,speed
speed = 80
Sleep speed,1
ScreenLock
Cls
for j = 40 to 502 step 42
Circle(j,40),15,7
next
ScreenUnlock
End Sub
Do
for i = 40 to 502 step 42
Circle(i,40),15,c,,,,f
Ers
next
for i = 460 to 82 step -42
Circle(i,40),15,c,,,,f
Ers
next
key = Inkey
loop Until (key = Chr(27)) Or (key = Chr(255) & "k")
End
Code: Select all
'animated circle by neil
screenres 542,80
Dim As String key
Dim Shared As Short i
Dim AS UByte c
'color
c = 12
Declare Sub delay(ByVal amt As Single, ByVal thr As Ulong = 1 * 2)
Sub delay(ByVal amt As Single, ByVal thr As Ulong)
Dim As Double t1 = Timer
Dim As Double t2 = t1 + amt / 1000
If amt > thr + 0.5 Then Sleep amt - thr, 1
Do
Loop Until Timer >= t2
End Sub
Do
for i = 40 to 502
ScreenLock
Cls
Circle(i,40),15,c,,,,f
ScreenUnlock
delay 2
next
for i = 502 to 40 step -1
ScreenLock
Cls
Circle(i,40),15,c,,,,f
ScreenUnlock
delay 2
next
key = Inkey
loop Until (key = Chr(27)) Or (key = Chr(255) & "k")
End