-
Notifications
You must be signed in to change notification settings - Fork 5
Polygon
Polygon X, Y, Side, RadiusX, RadiusY, OffsetDegree, CornerRadius
Polygon X, Y, Side, RadiusX, RadiusY, OffsetDegree; CornerRadius1, CornerRadius2,...
(bold = required, italic = skippable)
To use custom round corner, amount of CornerRadiusN needs to be equal number of Side
Example:
;Create a hexagon with 80px radius
Image = Polygon 100,400,6,80 | Color 133,214,92
;Create a 100px radius triangle with 20px corner radius
Image2 = Polygon 400,400,3,100,100,0,20 | StrokeWidth 5 | StrokeColor FF5050
;Create a 120px radius pentagon with 40px corner radius and offset 45 degrees
Image3 = Polygon 700,400,5,120,120,45,40 | Color 60,60,200 | StrokeWidth 3 | StrokeColor 100,100,200
;Create a 150px radius hexagon with custom round corners
Image4 = Polygon 1000,400,6,120,120; 10,30,50,70,90,110 | Color FFA53E
Default: 1 Parameter:
AntiAlias IsAntiAlias
Set IsAntiAlias
to 0 to turn off border smoothing.
Parameter:
Canvas Width, Height
Define shape region. Any pixel exceeds this region is cutoff.
Image = Rectangle 10,10,600,200 | Canvas 80,80
Default: 255,255,255 Parameter:
Color ColorValue
Fill shape color. Check out Color formats.
Default: 0,0 Parameter:
Offset X, Y
Change origin coordinate.
Default: 0 Parameter:
Rotate Degree
Rotate coordinate.
Default: Center Parameter:
StrokeAlign AlignType
Change Stroke alignment. Valid AlignType values:
Center
Outside
Inside
Default: 0,0,0,0 Parameter:
StrokeColor ColorValue
Define stroke color. Check out Color formats.
Default: 0 Parameter:
StrokeWidth Width
Define stroke width.