Skip to content

Rectangle

khanhas edited this page Oct 24, 2018 · 10 revisions

Parameters:

Rectangle X, Y, Width, Height, CornerRadiusX, CornerRadiusY

Custom round corners:

Rectangle X, Y, Width, Height; Corner1, Corner2, Corner3, Corner4

4 corners have same Corner1 radius:

Rectangle X, Y, Width, Height; Corner1

Top left and Right bottom corners have Corner1 radius, Top Right and Bottom Left corners have Corner2 radius:

Rectangle X, Y, Width, Height; Corner1, Corner2

Top Left has Corner1 radius, Top Right and Bottom Left have Corner2 radius, Bottom Right has Corner3 radius:

Rectangle X, Y, Width, Height; Corner1, Corner2, Corner3

(bold = required)

Examples:

Image = Rectangle 300,400,-200,200 | Color hsl(300,30,50)
Image2 = Rectangle 10,10,600,200,20 | StrokeWidth 5 | StrokeColor FF5050
Image3 = Rectangle 10,420,600,200; 20,60,40,50

Modifiers:

AntiAlias

Default: 1
Parameter:

AntiAlias IsAntiAlias

Set IsAntiAlias to 0 to turn off border smoothing.

Canvas

Parameter:

Canvas Width, Height

Define shape region. Any pixel exceeds this region is cutoff.

Image = Rectangle 10,10,600,200 | Canvas 80,80

Color

Default: 255,255,255
Parameter:

Color ColorValue

Fill shape color. Check out Color formats.

Offset

Default: 0,0
Parameter:

Offset X, Y

Change origin coordinate.

Rotate

Default: 0
Parameter:

Rotate Degree

Rotate coordinate.

StrokeAlign

Default: Center
Parameter:

StrokeAlign AlignType

Change Stroke alignment. Valid AlignType values:

  • Center
  • Outside
  • Inside

StrokeColor

Default: 0,0,0,0
Parameter:

StrokeColor ColorValue

Define stroke color. Check out Color formats.

StrokeWidth

Default: 0
Parameter:

StrokeWidth Width

Define stroke width.

Clone this wiki locally