RoundRectangle - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a two-dimensional Rounded Rectangle Shape with configurable radius of its corner curves, made of series of triangles, the amount of which is increased by the specified precision.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
location
None
Yes
radius
Vector2(1, 1)
Yes
fill_color
{int:color|Color2|Color4|[int:color, Color4]}
undefined
Yes
fill_alpha
1
Yes
outline_size
{int}
0
Yes
outline_color
{int:color|Color2|Color4}
undefined
Yes
outline_alpha
1
Yes
precision
{int:divisibleBy4}
24
Yes

Construction types

Name
Arguments
New constructor
location {Vector4}
radius? {Vector2}
fill_color? {int:color|Color2|Color4|[int:color
Color4]}
fill_alpha? {real}
outline_size? {int}
outline_color? {int:color|Color2|Color4}
outline_alpha? {real}
precision? {int:divisibleBy4}
From Rectangle
rectangle {Rectangle}
radius? {Vector2}
precision? {int:divisibleBy4}
Empty
Constructor copy
other {RoundRectangle}
⚠️ **GitHub.com Fallback** ⚠️