Reference for HES GRAPHICS BASIC 1.07\\ Initial document by Kurious\\ *This document currently is incomplete*\\ Colors: There are identifiers for the 16 colors BLACK WHITE RED CYAN PURPLE GREEN BLUE YELLOW PEACH BROWN PINK GRAY1 GRAY2 LGREEN SKY GRAY3 Parameters: - numeric value/variable or one of the color identifiers above - sprite number from 1 to 8 - an audio voice number from 1 to 3 - default device is 8 [] - optional parameter {||} - a choice of parameters [,...] - can repeat many times Graphics commands: HIRES and MULTI modes display the same graphics buffer in different ways The origin (0,0) lies at the lower left corner; coordinates are used as in typical math TEXT - Switch to text mode HIRES - Switch to HIRES mode MULTI - Switch to MULTI mode BACKGROUND - Choose background color BORDER - Choose border color HIRES COLOR ON - Choose foreground and background hires colors MULTI COLOR ,, - Choose multicolor colors CLEAR [] - Clear the graphics buffer using pattern (0-255), default 0 FILL , - Fill at the specified coordinate DOT , - Draw a dot at the specified coordinate LINE , TO , - Draw a line BOX , TO , - Draw the outline of a box GPRINT - Print the string within the graphics buffer SETORIGIN , - Change the location of the origin WINDOW ,,, - Clip graphics commands to occur within this window WINDOW - Issue without parameters to remove the window SCALE , - Choose a different scale (NOTE: Command is accepted but doesn't seem to work) Sprite commands: The following commands can be combined, i.e., SPRITE 1 ON AT 10,10 COLOR BLUE SPRITE {ON|OFF} - Turn sprite on or off SPRITE SHAPE - The value is from 0 to 255 SPRITE COLOR - Choose sprite color SPRITE XYSIZE , - Sizes are 1 for single or 2 for double SPRITE UNDER {ON|OFF} - Choose the plane of the sprite SPRITE AT , - Choose the sprite position SPRITE ANIMATE {ON|OFF} - Turns sprite animation on or off SPRITE SPEED , - Accepts non-integer values XPOS() - Returns X sprite position (this array is read-only) YPOS() - Returns Y sprite position (this array is read-only) Sound commands: Commands are accepted but don't seem to work The following commands can be combined, i.e., VOICE 1 ON WAVE SAW SOUND {ON|OFF} - Turn sound on or off VOLUME - Choose the volume from 0 to 15 VOICE {ON|OFF} - Turn voice on or off VOICE WAVE {SAW|TRIANGLE|PULSE|NOISE} - Choose the waveform VOICE ADSR ,,, - Select voice envelope VOICE PLAY [,...] - Values are from 0 to 65535 Disk commands: DIR [] - Display directory DISK ,[] - Execute disk command, for example: DISK "R:NEWNAME=OLDNAME" DISK [,] - Specify no command to retrieve status SPRITE {LOAD|SAVE} - Load or save sprites from/to disk Keyboard commands: KEY LIST - List function key assignments KEY {ON|OFF} - Activate of deactivate function key assignments KEY()= - Perform assignment to the indicated function key Flow control: ON ERROR GOTO - Choose a non-existing line number to disable error control PROCEDURE [([,...])] - Must be in code, only a marker DO [([,...])] - Calls the given procedure and pass values ELSE - Must be in a line by itself, matches last IF RESET - The same as pressing [RUN/STOP]+[RESTORE] Convenience commands: FIND - Shows lines of code containing strings that contain the given string CHANGE TO - Changes substrings within strings within the code REN [[,] - Renumber lines of code EDIT - Enter sprite editor, to exit press Q (NOTE: Keyboard commands currently unknown-TO DO) Other commands: JOY() - Returns the value at the joystick port, 1 or 2 Existing keywords with usage currently unknown: CIRCLE COPY EZE FROM HIT - Likely to be sprite related MOVE NE ROLL SCROLL