Project

General

Profile

Drawrect » History » Version 3

Per Amundsen, 07/17/2016 04:19 AM

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 2 Per Amundsen
-i - Draws in inverse mode.
10 1 Per Amundsen
-h - Highlights the windows icon if it is minimized.
11
-n - Prevents the display from being updated immediately.
12
-r - Indicates that the color is in RGB format. You can use [[$rgb]](N,N,N) to create an RGB value.
13
-f - Draws a filled rectangle.
14
-e - Draws an ellipse instead of a rectangle.
15
-c - Draws a focus rectangle.
16
-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.
17
18
*Parameters*
19
20
<@window> - Name of the Picture Window to draw to.
21
<color> - The color used for the rectangle.
22
<size> - Thickness of the border in pixels.
23
<x y w h> - Co-ordinates for a rectangle in pixels, x and y are the top left corner.
24 3 Per Amundsen
[<x y w h>...] - Draw additional rectangles.