.bp
.NH
Appendix: Overview of Pico commands
.LP
Commands preceded by a star only have effect when the
framebuffer display is open.
.DS
	COMMAND			DESCRIPTION

	a [x y w d] file,	append file with optional offset/dimensions,
	d basename/$n,		delete file,
	h file,			read header information from file(s),
	r file,			read (library) command file,
	w [-/+] file,		write file or window with or without a header
				format: default = pico, - = raw, + = dump

	nocolor			update & display only 1 channel
	color			update & display all  3 channels

	window x y w d,		restrict workarea to this window,

	get [x y w d] file,	read file contents into `old',
	get $n			refresh `old' with an already opened file

	f,			show mounted files,
*	faster,			update display 1 line iso 1 pel at a time
*	slower,			undo faster
	show [name],		show symbol information (values),
	functions,		show functions,

	def name { pprog },	define a function,
	x expr,			execute expr in default loop,
	x { pprog },		execute pico program,

	q,			quit,
.DE
File names containing nonalphanumeric characters (period, slash)
must be enclosed in double quotes. 
.SH
Builtin Commands
.LP
.DS
printf(string, args)	- recognizes only: %d, %s, \n, \t
x_cart(radius, angle)	- convert radius and angle into x_coordinate
y_cart(radius, angle)	- idem, y_coordinate, angle in degrees: 0..360
X_cart(r,a),Y_cart(r,a) - same, but expects angle in hundreds : 0..36000
r_polar(x,y)		- convert x,y coordinate into radius
a_polar(x,y)		- angle returned is in  degrees: 0..360   (+- 2 degrees)
A_polar(x,y)		- angle returned is in hundreds: 0..36000
putframe(nr)		- dump window into a file "frame.%6d", nr
getframe(nr)		- read from a file frame.%d (eg within a pico program)
setcmap(i, r,g,b), getcmap(i, r,g,b)	- write or read ith value in colormap
redcmap(i, z), grncmap(), blucmap()

sin(angle), cos(angle)	- returns 0..10,000, angle in degrees : 0..360
Sin(angle), Cos(angle)	- same but expects angle in hundreds: 0..36000
atan(x, y)		- arc-tangent of y/x, returns angle in degrees: 0..360
exp(a)			- as advertised
log(a),log10(a)		- returns 1024*result
sqrt(a), pow(a,b)	- integer square root of a; a to the power b
rand()			- unix rand() function
.DE
