expressiveLibraryPolygon function

ExpressiveRoundedPolygon expressiveLibraryPolygon(
  1. ExpressiveMaterialShape shape
)

shape normalized into the unit square, built once: what Compose's MaterialShapes.<Name> returns.

Implementation

ExpressiveRoundedPolygon expressiveLibraryPolygon(
  ExpressiveMaterialShape shape,
) => _polygons[shape.index] ??= expressiveLibraryShape(shape).normalized();