home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 3
/
CDPDIII.bin
/
pd
/
programming
/
assembler
/
thesource
/
volume1
/
source
/
scrollers
/
timesrc.lha
/
sine.bas
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
AmigaBASIC Source Code
|
1992-12-24
|
283 b
|
13 lines
' This generates the sine wave table for
' my scroller.
OPEN "ram:sine1" FOR OUTPUT AS #9
FOR x = (2*5.30795e-315) TO 0 STEP -0.025
s = INT(-30*(SIN(x)+COS(2*x)))+50
s = s * 40 ' width of bitplane
PRINT #9," dc.w ";s
NEXT x
CLOSE #9
BEEP
END