Draw Gradient Rectangle Icon Draw Gradient Rectangle

This action will draw a rectangle 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 and the rectangle will be drawn between them, and the position can either be an absolute position within the room, or a position relative to the instance calling the action. You then set the colours to blend from each of the corners and can also set whether the rectangle can be 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 Rectangle 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
Top LeftThe colour to blend from the top left corner
Top RightThe colour to blend from the top right corner
Bottom LeftThe colour to blend from the bottom left corner
Bottom RightThe colour to blend from the bottom right corner

 

Example:

Draw Gradient Rectangle ExampleThe above action block code draws a gradient rectangle relative to the instance position with some text over it.