TGC Codebase Backup



rgba by the_winch

4th Mar 2004 4:02
Summary

Alternative rgb command that lets you specify the red, green, blue and alpha values of the returned colour.



Description



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    function rgba(r as integer,g as integer,b as integer,a as integer)
  colour as dword
  colour = (b)+(g*256)+(r*65536)+(a*16777216)
endfunction colour