Sunday, April 3, 2022

πŸ†• _NEWIMAGE Keyword (for the SCREEN Statement)

 References:


I've implemented _NEWIMAGE such that it is somewhat compatible with the function in QB64.

Although I may implement _NEWIMAGE differently in the future, I decided to go with a no fuss no muss, quick and easy, approach.

In BASIC Anywhere Machine:
  • _NEWIMAGE is not a stand-alone function.  It is simply a keyword recognized by the SCREEN statement, but a keyword made to look like a function
    • Syntax:  SCREEN _NEWIMAGE(width, height, mode)
    • "Parameters":
      • width: the screen width, in pixels, of the console window
      • height: the screen height, in pixels, of the console window
      • mode: the base screen mode to use, width and height parameters overriding the default width and height of the mode
  • The original alternative syntax for the screen statement:
    • SCREEN mode
The SCREEN documentation in the programming reference discusses the attributes for each available screen mode.  For your convenience, refer to this (small HTML file) export of the "SCREEN Modes" documentation.


No comments:

Post a Comment

πŸ–₯ Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...