mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-03 17:01:21 +00:00
Existing syntax: colour~& = _RGB32(red, green, blue) New possible uses: - Instead of passing identical rgb values to achieve a shade of gray, pass only 1 parameter for all color components: colour~& = _RGB32(51) 'same as _RGB32(51, 51, 51) - _RGB32 can now take an optional alpha parameter, which makes _RGBA32 obsolete (although it still exists for retrocompatibility): colour~& = _RGB32(255, 0, 255, 30) 'same as _RGBA32(255, 0, 255, 30) - If you want a shade of gray and also to specify the alpha level, you can pass just two parameters: colour~& = _RGB32(51, 30) 'same as _RGBA32(51, 51, 51, 30) In summary: - 1 parameter = red, green and blue simultaneously set. - 2 parameters = red, green and blue simultaneously set plus alpha level. - 3 parameters = red, green and blue as usual. - 4 parameters = red, green and blue plus alpha level (same as _RGBA32). |
||
---|---|---|
.. | ||
android | ||
global | ||
ide | ||
qb_framework | ||
subs_functions | ||
utilities | ||
virtual_keyboard | ||
icon.rc | ||
qb64.bas | ||
qb64.ico |