Project

General

Profile

Drawfill » History » Version 6

Per Amundsen, 02/16/2023 12:18 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*/drawfill [-ihnrs] <@window> <color> <color> <x y> [filename] [<x y>...]*
4
5
Fills an area with the specified color starting at the specified co-ordinates.
6
7
*Switches*
8
9 6 Per Amundsen
table(ktable).
10
|*Switch*|*Description*|
11
| -i | Draws in inverse mode. |
12
| -h | Highlights the windows icon if it is minimized. |
13
| -n | Prevents the display from being updated immediately. |
14
| -r | Indicates that the color is in RGB format. You can use [[$rgb]](N,N,N) to create an RGB value. |
15
| -s | Indicates that the second color parameter is the color that should be filled (surface fill). If no -s is specified, the second color is the border color at which filling should stop (border fill). |
16 1 Per Amundsen
17 2 Per Amundsen
*Parameters*
18 1 Per Amundsen
19 6 Per Amundsen
table(ktable).
20
|*Parameter*|*Description*|
21
| <@window> | Name of the picture window to draw. |
22
| <color> | The color used for the fill. |
23
| <color> | The color used to know how to fill (if -s, it fills as long as the color of the pixels around is the same color as the one you provide here, otherwise, it fills as long as the color of pixel is not the color you provide here) |
24
| <x y> | The coordinate where to fill. |
25
| [filename] | *TODO* |
26
| [<x y>...] | *TODO* |