resampleIcon function

List<Sampled> resampleIcon(
  1. MorphIconData input, [
  2. int n = 64
])

Full input pipeline: icon → cubics → sampled subpaths with their topology (the plan needs to know which subpaths are closed loops).

Implementation

List<Sampled> resampleIcon(MorphIconData input, [int n = 64]) => iconToCubics(
  input,
).map((path) => Sampled(resamplePath(path, n), path.closed)).toList();