1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 07:10:22 +00:00
QB64-PE/internal
FellippeHeitor 6ee70f1afa Makes _RGB32 more flexible and powerful.
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).
2018-07-01 21:46:08 -03:00
..
c Makes _RGB32 more flexible and powerful. 2018-07-01 21:46:08 -03:00
help Update help files. 2017-10-10 11:55:21 -03:00
source (Automated push) Update internal/source/* from qb64.bas 2018-02-10 05:26:50 -08:00
temp Corrected OSX setup script to use OSX folder instead of Linux one. 2015-12-14 11:17:09 +11:00
clean.bat (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00