GetInkR
RedValue = GetInkR()
 
Parameters: NONE
Returns:

    RedValue = The current RED value from the current graphics INK colour.
 

      GetInkR returns the RED value from the current Ink Colour. This value will range between 0 and 255.



FACTS:


      * None



Mini Tutorial:


      This example shows how to set the current Ink colour, read it then R,G,B back directly.

  
  
; Set the INK colour
  Ink RGB(200,50,100)
  
; Display the A,R,G,B values of this colour
  Print "Current Ink Colour A is:"+Str$(GetInkA())
  Print "Current Ink Colour R is:"+Str$(GetInkR())
  Print "Current Ink Colour G is:"+Str$(GetInkG())
  Print "Current Ink Colour B is:"+Str$(GetInkB())
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  Current Ink Colour A is:0
  Current Ink Colour R is:200
  Current Ink Colour G is:50
  Current Ink Colour B is:100
  

 
Related Info: ARGB | GetInk | GetInkA | GetInkB | GetInkG | Ink | InkAlpha | InkMode | RGB :
 


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