GetInk
Colour = GetInk()
 
Parameters: NONE
Returns:

    Colour = The current INK in RGB format
 

      GetInk returns the current colour of the graphics pen in RGB format.



FACTS:


      * None




Mini Tutorial:


      This example shows how to set the current Ink colour, read it back into a variable, then display the R,G,B values that make up this colour.

  
; Set the INK colour
  Ink RGB(200,50,100)
  
; Read the current Ink colour
  ThisColour=GetInk()
  
; Displayt the R,G,B values of this colour
  Print "Current Ink Colour R is:"+Str$(RgbR(ThisColour))
  Print "Current Ink Colour G is:"+Str$(RgbG(ThisColour))
  Print "Current Ink Colour B is:"+Str$(RgbB(ThisColour))
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

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

 
Related Info: GetInkB | GetInkG | GetInkMode | GetInkR | Ink | InkAlpha | InkMode | RGB :
 


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