|
Post by charliejv on Apr 20, 2023 20:44:38 GMT -5
_DEFCHR$ statement to define new 8x8 characters for ascii codesA little something I'm trying out as an easy way to associate new custom characters to existing ascii codes as substitutes to the character set in BAM. Characters are only 8 x 8 pixels, so it isn't a lot of room to work with. The idea is to have a no fuss no muss way of creating interesting graphics characters for old-school BASIC programs. An easy way to jazz up the appearances of these applications without altering the original code other than add new characters at the beginning of the program, and replace any characters in the original code with the appropriate chr$() values. Sample program: Test version of BASIC Anywhere Machine. (In the definition string, only uppercase "X" characters will produce pixels in the new character; all other characters in the string will result in no turned on pixels in those positions.)
|
|
|
Post by bplus on Apr 21, 2023 14:08:42 GMT -5
This is interesting but where is _DEFCHR$() coming from (defined)? Not from QB64 nor Old Basics.
Also Screen _NewImage( rows or cols? , cols or rows?, 27) ' 27 ??
|
|
|
Post by charliejv on Apr 21, 2023 20:13:55 GMT -5
This is interesting but where is _DEFCHR$() coming from (defined)? Not from QB64 nor Old Basics. Also Screen _NewImage( rows or cols? , cols or rows?, 27) ' 27 ?? _DEFCHR$ is my own tentative invention, because I could not find anything in any BASIC implementation that does what I want to do. EDIT: Please, if you know of any BASIC implementation that has a statement that does this, let me know. SCREEN _NEWIMAGE( number_of_pixels_wide, number_of_pixels_high, screen_mode) Screen modes:
|
|