Sunday, August 14, 2022

🆕 _RGB and _RGB32

_RGB and _RGB32 added for partial compatibility with QB64/QB64PE (i.e. make it quicker/easier to get QB64/QB64PE programs working in BASIC Anywhere Machine, and make it easier to create programs in BASIC Anywhere Machine intended for QB64/QB64PE.

In BASIC Anywhere Machine, _RGB and _RGB32 are 100% duplicates of each other.

_RGB

The _RGB function returns the LONG 32-bit color value (32-bit screens).

Syntax: returnValue = _RGB(red%, green%, blue%)

  • QB64: The _RGB function returns the closest palette attribute index (legacy SCREEN modes) OR the LONG 32-bit color value (32-bit screens).
  • BAM: The _RGB function returns the LONG 32-bit color value (32-bit screens).

_RGB32

The _RGB32 function returns the 32-bit RGB color value with specified red, green and blue component intensities.

Syntax: returnValue = _RGB32(red%, green%, blue%)

  • QB64: Has three additional syntax, and other parameters.


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...