From Scriptwiki
Revision as of 17:06, 28 June 2013 by Cail (talk | contribs) (Adding new page, needs examples.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

/drawfill -ihnrs @ <color> <color> <x y> [filename] [<x y>...]

Fills an area with the specified color starting at the specified co-ordinates. The optional [filename] specifies a bitmap .BMP file that is 8 by 8 pixels in size and is used as a fill pattern.


-i draws in inverse mode.
-h highlights the windows icon if it is minimized.
-n prevents the display from being updated immediately. This allows you to make changes to the window in the background and then display the results only when you have finished. You can update the display by using any of the /draw commands with only the window name specified.
-r indicates that the color is in RGB format. You can use $rgb(N,N,N) to create an RGB value.
-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).

The whole window can be cleared by using the /clear command, eg. /clear @name. You can also specify the -n switch in /clear to delay the effect as described above.

See Also

  • $rgb for the use of RGB colors with this identifier.