Difference between revisions of "BLUE32"

From QB64 Wiki
Jump to navigation Jump to search
imported>Odin
(Created page with "{{DISPLAYTITLE: _BLUE32}} The '''_BLUE32''' function returns the intensity of the blue component of a 32-bit color value, ranging from 0 to 255. == Syntax == blueAmount = ''...")
imported>Odin
(Make this page a redirect to Color Components)
Line 1: Line 1:
{{DISPLAYTITLE: _BLUE32}}
+
#REDIRECT [[Color Components]]
 
 
The '''_BLUE32''' function returns the intensity of the blue component of a 32-bit color value, ranging from 0 to 255.
 
 
 
== Syntax ==
 
blueAmount = '''_BLUE32'''(colorValue~&)
 
 
 
== Example ==
 
<source lang="qbasic">
 
SCREEN _NEWIMAGE(640, 400, 32)
 
BdazzeldBlue~& = _RGB32(46, 88, 148)
 
 
 
PRINT "B'dazzled blue is a color in Crayola Metallic FX,"
 
PRINT "a specialty set of Crayola crayons introduced in 2001."
 
PRINT
 
PRINT "Color coordinates (r, g, b) are:";
 
PRINT _RED32(BdazzeldBlue~&); ","; _GREEN32(BdazzeldBlue~&); ","; _BLUE32(BdazzeldBlue~&)
 
PRINT
 
PRINT "Here's a sample: ";
 
COLOR BdazzeldBlue~&
 
PRINT STRING$(10, 219) 'ASCII character 219 (solid block)
 
</source>
 
 
 
''Output:''
 
[[File:Sample code showcasing RED32, GREEN32, BLUE32.png|center]]
 

Revision as of 03:06, 25 July 2017

Redirect to: