Project

General

Profile

$getdot » History » Revision 3

Revision 2 (Per Amundsen, 08/10/2015 06:50 AM) → Revision 3/5 (Per Amundsen, 08/10/2015 08:14 AM)

_Added in 1.9.1_ 

 *$getdot(@,x,y)* 

 Returns the [[$rgb|RGB]] color value of the dot at the specified position in a picture window. 

 *Parameters* 

 @ - The picture window name. 
 x - The X coordinate. 
 y - The Y coordinate. 

 *Example* 

 <pre> 
 ; Open a picture window 
 /window -p @Example @test 

 ; Fill a rectangle on the picture window 
 /drawfill @Example @test 4 4 0 0 

 ; Get the RGB color value at x coordinate 0 and y coordinate 0 
 //echo -ag $getdot(@Example, $getdot(@test, 0, 0) 
 </pre>