Graphics in RBASIC™
Creating a graphics output is particularly simple with RBASIC. Opening and closing graph windows and plotting spectrum graphs can be accomplished with very little programming effort.
Opens a graphics window with X,Y dimensions and names it.
Closes a graphic window.
Clears the graphic window.
Clears only one vertical line in a graph.
This is useful for real-time plotting of spectra (clears the old spectrum).
Clears only one horizontal line in a graph.
Sets the current color (red, green, blue; with values ranging from 0 to 255) in the graph. This affects all drawing commands.
Sets graph pixel [X,Y] to the current color. A synonym for SETPOINT is SETP.
Draws a line from last position to the new one.
Draws a line defined by the start and end co-ordinates.
In addition to the above graphics commands, there is a single graphic function POINT, which returns the color of a point if it is set, and zero if it is reset. The color value is calculated as RED+256*GREEN+65536*BLUE (corresponding to hexadecimal representation BBGGRR).