expressiveLibraryUnitPath function

Path expressiveLibraryUnitPath(
  1. ExpressiveMaterialShape shape
)

shape's outline in the unit square, built once (Compose's RoundedPolygon.toPath, start angle 0). Never mutated: callers transform a copy.

Implementation

Path expressiveLibraryUnitPath(ExpressiveMaterialShape shape) =>
    _unitPaths[shape.index] ??= expressiveCubicsPath(
      expressiveLibraryPolygon(shape).cubics,
    );