More particles

Blitz3D Forums/Blitz3D Programming/More particles

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.


Function RGB(r,g,b)

Return (r Shr 16)+(g Shr 8)+b

End Function




I just punched this into the browser. Migt be wrong though. I don't use shr much.



Don't think that will work.

Try,
function rgb(r,g,b)
    return b or (g shl 8) or (r shl 16)
end function