Skip to content

menu Image Ellipse

menu Image Ellipse {name} {x1} {y1} {x2} {y2} {colour} {fill} [width]

Also searchable as: menu Image Ellipse · circle

menu Image Ellipse draws the ellipse that fits in the rectangle with corners x1, y1 and x2, y2; a square gives a circle. Positions are inside the image, 0, 0 being its top-left corner.

Parameter Meaning
name Name of an image created with menu Image Create.
x1, y1, x2, y2 Two opposite corners of the box around the ellipse.
colour A colour, see Colours: a name such as red or btnface, or a $BBGGRR number.
fill #true (any number other than 0) fills it with the same colour; #false (0) draws only the outline.
width Optional outline width in pixels. Default: 1.

$FEEEED is the transparent colour of images: painting with it makes those pixels see-through.

menu Clear
menu Window Size 84 84
menu Image Create pic 10 10 64 64
menu Image Ellipse pic 8 8 56 56 yellow #true
menu Image Ellipse pic 20 20 44 44 red #false 3
menu Show
halt
  • 1.6: a negative second corner (x2, y2) is refused.

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.

The EasyUO 1.6 behaviour on this page was researched with help from the ScriptUO community: Gaderian's tutorial New Menu Code and how to adapt old scripts and the scripts its members share at scriptuo.com.