scaled method

SPath scaled(
  1. double scale, {
  2. Point<double>? about,
})

Scale the shape about its approximate centroid

Implementation

SPath scaled(double scale, {Point<double>? about}) {
  final c = about ?? centroid;
  return transformed((pt) => c + (pt - c) * scale);
}