$getdot » History » Version 5
Per Amundsen, 02/23/2023 12:10 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 | 5 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | @ | The picture window name. | |
||
12 | | x | The X coordinate. | |
||
13 | | y | The Y coordinate. | |
||
14 | 1 | Per Amundsen | |
15 | *Example* |
||
16 | |||
17 | <pre> |
||
18 | 4 | Per Amundsen | ; Open a picture window. |
19 | 3 | Per Amundsen | /window -p @Example |
20 | 1 | Per Amundsen | |
21 | 4 | Per Amundsen | ; Fill a rectangle on the picture window. |
22 | 3 | Per Amundsen | /drawfill @Example 4 4 0 0 |
23 | 1 | Per Amundsen | |
24 | 4 | Per Amundsen | ; Get the RGB color value at x coordinate 0 and y coordinate 0. |
25 | 3 | Per Amundsen | //echo -ag $getdot(@Example, 0, 0) |
26 | 1 | Per Amundsen | </pre> |