RGBB
BlueValue = RGBB(RgbColour)
 
Parameters:

    RgbColour = The colour value you wish to find the level of BLUE within
Returns:

    BlueValue = The amount of BLUE in this colour.
 

      The RGBB() Function will return the level of BLUE in this RGB colour.



FACTS:


      * RGBB is the equivalent of Blue = ThisColour and $ff





Mini Tutorial:


      This example creates a colour with the RGB function then retrives the R,G,B values.

  
  
; Make a variable called MyColur and assign it a RGB colour value
  MyColour = RGB(25,100,200)
  
; Print The Red level from the Mycolour Variable
  Print RgbR(MyColour)
  
; Print The GREEN level from the Mycolour Variable
  Print RgbG(MyColour)
  
; Print The BLUE level from the Mycolour Variable
  Print RgbB(MyColour)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  


This example would output.

  
  25
  100
  200
  

 
Related Info: ARGB | RGB | RGBA | RGBG | RGBR :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com