Graphics & Sound
____________________________

Colors:
Mono: 0=black, 15=white,
      any=gray
2bit: 0=black, 15=white
      1-6,8=dark-gray,
      7,9-14=light-gray
4bit: 16 colors of gray
8bit: 16 Standard VGA colors

STEP keyword:
The STEP keyword calculates
the next x,y parameters 
relative to current position
____________________________

ARC [STEP] x,y,r,
       astart,aend[,aspect]
       [COLOR color]

Draws an arc

astart,aend = first,last
angle in rads.
____________________________

CHART {LINECHART|BARCHART}
     , array() [, {0|1|2|3}
     [, x1, y1, x2, y2]]

Draws a chart of array
values in the rectangular
area x1,y1,x2,y2

type:
0 = simple
1 = with marks
2 = with ruler
3 = with marks & ruler
____________________________

CIRCLE [STEP] x,y,r
	   [,aspect]
	   [COLOR color]
	   [FILLED]

Draws a circle/ellipse.
____________________________

COLOR fg [, text_bg]

Changes the current pen
color
____________________________

DRAWPOLY array() [,x-origin
     ,y-origin [, scalef]]
     [COLOR color] 
     [FILLED]

Draws a polyline

even elements for x
       (starting from 0)
odd elements for y
____________________________

DRAW string
____________________________

LINE [STEP] x,y
	   [{,|STEP} x2,y2]
		   [COLOR color]

Draws a line
____________________________

PSET [STEP] x,y
	      [COLOR color]

Draw a pixel at x,y position
____________________________

RECT [STEP] x,y
	   [{,|STEP} x2,y2]
	   [COLOR color]
		   [FILLED]

Draws a rectangular 
parallelogram
____________________________

TXTW(s), TXTH(s)

Returns the text 
width/height of string s
in pixels
____________________________

POINT(x[,y])

Returns the value of the
pixel at x,y

if y does not specified
x contains the info-code
0 = returns the current X
  graphics position (since
  its used for STEP keyword)
1 = returns the current Y
  graphics position
____________________________

PAINT [STEP] x, y 
[,fillcolor [,bordercolor]]

____________________________

VIEW [x1,y1,x2,y2]
____________________________

WINDOW [x1,y1,x2,y2]
____________________________

BEEP

Generates a beep sound
____________________________

PLAY string

Play musical notes

A-G[-|+|#][nnn][.]
  Play note A..G
  +|# - sharp
  - - flat
  . - multiplier 1.5

On - Octave 0..6
<  - Moves down one octave
>  - Moves up one octave

Nnn - Play note 0..84
  (0 = pause)

Pnnn - Pause 1..64

Lnnn - Length of note 1..64
  (1/nnn)
Tnnn - Tempo 32..255
  Number of 1/4 notes per
  minute.

MS - Staccato (1/2)
MN - Normal (3/4)
ML - Legato

Vnnn - Volume 0..100

MF - Play on foreground
MB - Play on background
____________________________

SOUND freq, dur_ms [, vol]

Plays a sound
