January 19, 2021, 05:46:28 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Gallery
Login
Register
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
Graphics
»
[bb] GetRGB by Skully [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] GetRGB by Skully [ 1+ years ago ] (Read 393 times)
BlitzBot
Jr. Member
Posts: 1
[bb] GetRGB by Skully [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:41 AM »
Title :
GetRGB
Author :
Skully
Posted :
1+ years ago
Description :
Returns an RGB colour code for the red/green/blue components and back again
Code :
Code: BlitzBasic
Function
GetRed
(
rgb
)
Return
rgb
Shr
16
And
%11111111
End Function
Function
GetGreen
(
rgb
)
Return
rgb
Shr
8
And
%11111111
End Function
Function
GetBlue
(
rgb
)
Return
rgb
And
%11111111
End Function
Function
GetRGB
(
red,green,blue
)
Return
blue
Or
(
green
Shl
8
)
Or
(
red
Shl
16
)
End Function
Comments :
none...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
Graphics
»
[bb] GetRGB by Skully [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal