$getdot » History » Version 4
Per Amundsen, 02/18/2017 08:56 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 | 4 | Per Amundsen | ; Open a picture window. |
17 | 3 | Per Amundsen | /window -p @Example |
18 | 1 | Per Amundsen | |
19 | 4 | Per Amundsen | ; Fill a rectangle on the picture window. |
20 | 3 | Per Amundsen | /drawfill @Example 4 4 0 0 |
21 | 1 | Per Amundsen | |
22 | 4 | Per Amundsen | ; 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> |