Project

General

Profile

Drawrect » History » Version 4

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

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*/drawrect -ihnrfecd <@window> <color> <size> <x y w h> [<x y w h>...]*
4
5
Draws a rectangle at the specified co-ordinates of the specified width and height. If more co-ordinates are specified these are also drawn as separate rectangles.
6
7
*Switches*
8
9 4 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
| -f | Draws a filled rectangle. |
16
| -e | Draws an ellipse instead of a rectangle. |
17
| -c | Draws a focus rectangle. |
18
| -d | Draws a rounded rectangle, using the format "/drawrect -d x y w h [w h]" where w and h are the width and height of the ellipse used to draw the corners. |
19 1 Per Amundsen
20
*Parameters*
21
22 4 Per Amundsen
table(ktable).
23
|*Parameter*|*Description*|
24
| <@window> | Name of the Picture Window to draw to. |
25
| <color> | The color used for the rectangle. |
26
| <size> | Thickness of the border in pixels. |
27
| <x y w h> | Co-ordinates for a rectangle in pixels, x and y are the top left corner. |
28
| [<x y w h>...] | Draw additional rectangles. |