RGBG
GreenValue = RGBG(RgbColourValue)
 
Parameters:

    RgbColourValue = The colour value you wish to find the level of GREEN within
Returns:

    GreenValue = The amount of GREEN in this colour.
 

      The RGBG() Function will return the level of GREEN found within this RGB colour.



FACTS:


      * RGBG is the equivalent of Green = Lsr32(ThisColour,8) 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 | RGBB | RGBR :
 


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