ClipComponent.polygon constructor

ClipComponent.polygon({
  1. required List<Vector2> points,
  2. Vector2? position,
  3. Vector2? size,
  4. Vector2? scale,
  5. double? angle,
  6. Anchor? anchor,
  7. Iterable<Component>? children,
  8. int? priority,
  9. ComponentKey? key,
})

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,
      );