Draw Gradient Ellipse Icon Draw Gradient Ellipse

This action will draw an ellipse at a given position within the room, using a set of blend colours to create a gradient. You give the top left position and the bottom right position of the area that the ellipse is to "fit" into, and the ellipse will be drawn between them. The position can either be an absolute position within the room, or a position relative to the instance calling the action and you can set the colours to blend from the edge of the ellipse and from its center. The ellipse can be drawn filled or outlined by checking the fill box at the bottom.

NOTE This action is only for use in the various Draw Events, and will not draw anything if used elsewhere.

 

 

Action Syntax:

Draw Gradient Ellipse Action

Arguments:

ArgumentDescription
LeftThe left position to start drawing from
TopThe top position to start drawing from
RightThe right position to end drawing from
BottomThe bottom position to end drawing from
CenterThe colour to blend from the center
EdgeThe colour to blend from the edge

 

Example:

Draw Gradient Ellipse ExampleThe above action block code draws a gradient ellipse at the position of the instance of "obj_Player".