File: sine

package info (click to toggle)
brandy 1.23.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,268 kB
  • sloc: ansic: 39,421; makefile: 91; sh: 1
file content (17 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
REM This program works either in the SDL build of Matrix Brandy, or
REM the full text mode version (tbrandy) when run from an xterm window.
:
SYS "Brandy_TekEnabled",1
MODE 20
VDU5:CLG
x%=0
ORIGIN 0, 512
LINE 0, 0, 1279, 0
LINE 0, -480, 0, 480
MOVE 0,0
FOR angle=0 TO 2*PI STEP PI/50
DRAW x%, 480*SIN(angle)
x%+=12
NEXT
VDU4
END