09-07-2022, 03:29 AM
You know, I've been fighting with myself to post here a program that does something similar. My program has a draw area at the top and an user input area at the bottom. The user could type in the string as he/she would in a BASIC program, and my program would react to it straight away, like the QB64 editor in older times. Punch a key and the user could use the arrow keys to draw, and my program would employ some A.I. to keep the "DRAW" string tidy about it. Punch the same key and it returned to boring user input mode.
It's still W.I.P. and I have to go find it in my backups. I decided to do it in 32-bit color, which affected how the "C" commands were interpreted. If I'm not mistaken I decided to treat it like SCREEN 12, having my program load in a separate text file which indicates the red, green, blue attributes for each of 16 colors. It was to keep the program simple and in case the "DRAW" string was to be included for SCREEN 12 or something else.
It's still W.I.P. and I have to go find it in my backups. I decided to do it in 32-bit color, which affected how the "C" commands were interpreted. If I'm not mistaken I decided to treat it like SCREEN 12, having my program load in a separate text file which indicates the red, green, blue attributes for each of 16 colors. It was to keep the program simple and in case the "DRAW" string was to be included for SCREEN 12 or something else.