RGBA
AlphaValue = RGBA(RgbColour)
 
Parameters:

    RgbColour = The colour value to find get the ALPHA level from
Returns:

    AlphaValue = The amount of ALPHA in this colour.
 

      The RGBA() Function will return the level of ALPHA level found within this RGB colour.



FACTS:


      * RGBA is the equivalent to Alpha = Lsr32(ThisColour,24)




Mini Tutorial:


      This example creates a colour with the RGB function than show you to retrieve the A,R,G,B values from the created colour value.

  
; Make a variable called MyCOlour and assign it a ARGB colour value
  MyColour = ARGB(128,25,100,200)
  
; Print The ALPHA level from the Mycolour Variable
  Print RgbA(MyColour)
  
; 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.

  
  128
  25
  100
  200
  

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


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