Project

General

Profile

$getdot » History » Version 3

Per Amundsen, 08/10/2015 08:14 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 3 Per Amundsen
/window -p @Example
18 1 Per Amundsen
19 2 Per Amundsen
; Fill a rectangle on the picture window
20 3 Per Amundsen
/drawfill @Example 4 4 0 0
21 1 Per Amundsen
22
; Get the RGB color value at x coordinate 0 and y coordinate 0
23 3 Per Amundsen
//echo -ag $getdot(@Example, 0, 0)
24 1 Per Amundsen
</pre>