1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 13:31:23 +00:00
QB64-PE/internal/c
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_compiler (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
libqb Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
parts Fix detection of title bar height globally. 2018-06-27 11:03:33 -03:00
common.h Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
libqb.cpp Adds _SMOOTH function to return current fullscreen antialiasing setting. 2018-06-30 17:09:29 -03:00
libqb.h Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
libqb.mm (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
makedat_lnx32.txt (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
makedat_lnx64.txt (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
makedat_win32.txt (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
makedat_win64.txt (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
makeline_lnx.txt (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
makeline_osx.txt (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
makeline_win.txt (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
msbin.c Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri1.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri1s.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri1t.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri1ts.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri2.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri2s.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri2t.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri2ts.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri3.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri3s.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri3t.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri3ts.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri4.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri4s.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri4t.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
mtri4ts.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
myip.cpp Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
os.h Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
purge_all_precompiled_content.bat Resolved the issue of user mods not working for $console:only programs 2017-09-25 21:56:24 +10:00
purge_all_precompiled_content.command Resolved the issue of user mods not working for $console:only programs 2017-09-25 21:56:24 +10:00
purge_all_precompiled_content.sh Resolved the issue of user mods not working for $console:only programs 2017-09-25 21:56:24 +10:00
purge_all_precompiled_content_lnx.sh Resolved the issue of user mods not working for $console:only programs 2017-09-25 21:56:24 +10:00
purge_all_precompiled_content_osx.command Resolved the issue of user mods not working for $console:only programs 2017-09-25 21:56:24 +10:00
purge_all_precompiled_content_win.bat Resolved the issue of user mods not working for $console:only programs 2017-09-25 21:56:24 +10:00
purge_libqb_only.bat (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
qbx.cpp Makes _RGB32 more flexible and powerful. 2018-07-01 21:46:08 -03:00
time64.c Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00
time64.h Indentation work. No actual code changes. 2018-06-30 14:23:33 -03:00