ClipComponent.polygon constructor
ClipComponent.polygon({})
Clips the canvas in the form of a polygon based on its size.
Implementation
ClipComponent.polygon({
required List<Vector2> points,
Vector2? position,
Vector2? size,
Vector2? scale,
double? angle,
Anchor? anchor,
Iterable<Component>? children,
int? priority,
ComponentKey? key,
}) : this(
builder: _polygonShapeBuilder(points),
position: position,
size: size,
scale: scale,
angle: angle,
anchor: anchor,
children: children,
priority: priority,
key: key,
);