androidx.graphics.shapes


Interfaces

MutablePoint

This interface is used refer to Points that can be modified, as a scope to PointTransformer

PointTransformer

Interface for a function that can transform (rotate/scale/translate/etc.) points.

Classes

CornerRounding

CornerRounding defines the amount and quality around a given vertex of a shape.

Cubic

This class holds the anchor and control point data for a single cubic Bézier curve, with anchor points (anchor0X, anchor0Y) and (anchor1X, anchor1Y) at either end and control points (control0X, control0Y) and (control1X, control1Y) determining the slope of the curve between the anchor points.

CubicKt
Feature

While a polygon's shape can be drawn solely using a list of Cubic objects representing its raw curves and lines, features add an extra layer of context to groups of cubics.

FeatureSerializer

The FeatureSerializer is used to both serialize and parse Feature objects.

Morph

This class is used to animate between start and end polygons objects.

MutableCubic

This is a Mutable version of Cubic, used mostly for performance critical paths so we can avoid creating new Cubics

RoundedPolygon

The RoundedPolygon class allows simple construction of polygonal shapes with optional rounding at the vertices.

RoundedPolygonKt
ShapesKt
SvgPathParser

Converts each command (beside move to) of a svg path to a list of Cubics by calling SvgPathParser.parseCubics.

Feature.Factory
RoundedPolygon.Companion