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

🖥 Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...