Project

General

Profile

$getdot » History » Version 2

Per Amundsen, 08/10/2015 06:50 AM

1 1 Per Amundsen
_Added in 1.9.1_
2
3
*$getdot(@,x,y)*
4
5
Returns the [[$rgb|RGB]] color value of the dot at the specified position in a picture window.
6
7
*Parameters*
8
9
@ - The picture window name.
10
x - The X coordinate.
11
y - The Y coordinate.
12
13
*Example*
14
15
<pre>
16
; Open a picture window
17
/window -p @test
18
19 2 Per Amundsen
; Fill a rectangle on the picture window
20 1 Per Amundsen
/drawfill @test 4 4 0 0
21
22
; Get the RGB color value at x coordinate 0 and y coordinate 0
23
//echo -ag $getdot(@test, 0, 0)
24
</pre>