Difference between revisions of "RGB"

From QB64 Wiki
Jump to navigation Jump to search
Line 2: Line 2:
:<code>{{Parameter|colorindex}} = {{KW|_RGB}}({{Parameter|red}}, {{Parameter|green}}, {{Parameter|blue}}[, {{Parameter|image_handle}}])</code>
:{{Parameter|colorindex}} = {{KW|_RGB}}({{Parameter|red}}, {{Parameter|green}}, {{Parameter|blue}}[, {{Parameter|image_handle}}])

Revision as of 04:28, 30 November 2010

The _RGB function returns the closest palette index or 32 bit color value.

colorindex = _RGB(red, green, blue[, image_handle])

  • red& specifies the red component intensity.
  • green& specifies the green component intensity.
  • blue& specifies the blue component intensity.
  • Valid component intensity values range from 0 (no intensity; color not present) to 255 (full intensity).
  • Values outside the valid range are clipped.

See also

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page