RGBR
RedValue = RGBR(RgbColourValue)
 
Parameters:

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

    RedValue = The amount of RED in this colour.
 

      The RGBR() Function will return the level of RED in this RGB colour.



FACTS:


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


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