_BLUE32

From QB64 Wiki
Revision as of 03:02, 25 July 2017 by 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 = ''...")
Jump to navigation Jump to search


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: