From WikiChip
Difference between revisions of "mirc/commands/drawrect"
m (Bot: Fixing links) |
(→Switches) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|/drawrect Command}} | ||
The '''/drawrect command''' can be used to draw a rectangle in a picture window. Multiple rectangles can be drawn at once. | The '''/drawrect command''' can be used to draw a rectangle in a picture window. Multiple rectangles can be drawn at once. | ||
Line 5: | Line 6: | ||
== Switches == | == Switches == | ||
− | * '''-i''' - | + | * '''-i''' - draws in inverse color mode. You can find the final color based on the two color by using $xor($xor(currentcolor,16777215),drawncolor). Drawing the same color gives white and may be used to create transparency effect. |
* '''-h''' - Highlights the windows icon if it is minimized. | * '''-h''' - Highlights the windows icon if it is minimized. | ||
* '''-n''' - Prevents the display from being updated immediately. | * '''-n''' - Prevents the display from being updated immediately. | ||
Line 33: | Line 34: | ||
== Compatibility == | == Compatibility == | ||
Added: | Added: | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | * | + | * {{mIRC|$rgb}} |
− | * | + | * {{mIRC|$window}} |
* {{mIRC|/drawcopy}} | * {{mIRC|/drawcopy}} | ||
* {{mIRC|/drawdot}} | * {{mIRC|/drawdot}} | ||
Line 55: | Line 52: | ||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:mIRC commands|drawrect command - mIRC]] |
Revision as of 12:57, 29 April 2020
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /drawrect command can be used to draw a rectangle in a picture window. Multiple rectangles can be drawn at once.
Synopsis
/drawrect [-ihnrfecd] <@win> <color> <size> <x y w h> [x y w h [...]]
Switches
- -i - draws in inverse color mode. You can find the final color based on the two color by using $xor($xor(currentcolor,16777215),drawncolor). Drawing the same color gives white and may be used to create transparency effect.
- -h - Highlights the windows icon if it is minimized.
- -n - Prevents the display from being updated immediately.
- -r - Indicates that the color is in RGB format.
- -f - Draws a filled rectangle.
- -e - Draws an ellipse instead of a rectangle.
- -c - Draws a focus rectangle.
- -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.
Parameters
- <@win> - Name of the Picture Window to draw to.
- <color> - A mIRC colour value from 0 to 15, or if the -r switch is used, an RGB value.
- <size> - Thickness of the border in pixels.
- <x y w h> - Co-ordinates for a rectangle in pixels, x and y are the top left corner.
Example
;Draws a rectangle that is blue (colour 2) with border thickness of 7, at co-ordinates 15,10 with a width of 200 and height of 150. /drawrect @window 2 7 15 10 200 150 ;Same as above but the corners are drawn using a 5x5 ellipse. /drawrect -d @window 2 7 15 10 200 150 5 5 ;Draws a filled green rectangle using an RGB colour value. /drawrect -fr @window 65280 1 5 5 20 20
Compatibility
Added:
See also
- List of commands
- List of identifiers
- $rgb
- $window
- /drawcopy
- /drawdot
- /drawfill
- /drawline
- /drawpic
- /drawreplace
- /drawrot
- /drawsave
- /drawscroll
- /drawtext
mIRC commands list