1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 17:01:21 +00:00
QB64-PE/source
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
..
android Removed non-ASCII characters and many hard tabs from source files, making it easier to use other text editors (special characters were being mangled in some cases). 2015-12-30 21:28:13 +11:00
global Update build number to incorporate development into master. Also: 2018-02-28 08:47:53 -03:00
ide Adds new keywords to syntax highlighter. 2018-06-29 12:14:08 -03:00
qb_framework Added support for Android & Virtual Keyboards 2015-10-30 23:18:44 +11:00
subs_functions Makes _RGB32 more flexible and powerful. 2018-07-01 21:46:08 -03:00
utilities Moved the string manipulation functions into a separate source file 2018-05-25 10:47:42 +02:00
virtual_keyboard Removed non-ASCII characters and many hard tabs from source files, making it easier to use other text editors (special characters were being mangled in some cases). 2015-12-30 21:28:13 +11:00
icon.rc Update icon.rc 2017-11-10 12:48:32 -02:00
qb64.bas Makes _RGB32 more flexible and powerful. 2018-07-01 21:46:08 -03:00
qb64.ico Proper embedding of qb64.ico into the Windows binary. 2016-09-04 12:12:30 -03:00