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
m (2 revisions imported)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE: _BLUE32}}
+
{{DISPLAYTITLE:_BLUE32}}
 +
The [[_BLUE32]] function returns the blue component intensity of a 32-bit image or surface color.
  
The '''_BLUE32''' function returns the intensity of the blue component of a 32-bit color value, ranging from 0 to 255.
 
  
== Syntax ==
+
{{PageSyntax}}
blueAmount = '''_BLUE32'''(colorValue~&)
+
: {{Parameter|blue32color&}} = [[_BLUE32]]({{Parameter|rgbaColor&}})
  
== 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,"
+
{{PageDescription}}
PRINT "a specialty set of Crayola crayons introduced in 2001."
+
* {{Parameter|rgbaColor&}} is the 32-bit ''RGBA'' color value to retrieve the blue component intensity value from.
PRINT
+
* ''RGBA'' color values are returned by the [[_PALETTECOLOR (function)|_PALETTECOLOR]], [[POINT]], [[_RGB]], [[_RGB32]], [[_RGBA]] or [[_RGBA32]] functions.
PRINT "Color coordinates (r, g, b) are:";
+
* [[LONG]] intensity values returned range from 0 (no intensity, not present) to 255 (full intensity).
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]]
+
{{PageExamples}}
 +
* See the example for [[POINT]].
 +
 
 +
 
 +
{{PageSeeAlso}}
 +
* [[_RED32]], [[_GREEN32]]
 +
* [[_RGB32]], [[_BLUE]]
 +
 
 +
 
 +
{{PageNavigation}}

Latest revision as of 03:16, 1 November 2017

The _BLUE32 function returns the blue component intensity of a 32-bit image or surface color.


Syntax

blue32color& = _BLUE32(rgbaColor&)


Description

  • rgbaColor& is the 32-bit RGBA color value to retrieve the blue component intensity value from.
  • RGBA color values are returned by the _PALETTECOLOR, POINT, _RGB, _RGB32, _RGBA or _RGBA32 functions.
  • LONG intensity values returned range from 0 (no intensity, not present) to 255 (full intensity).


Examples

  • See the example for POINT.


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page