smoothArea static method

Path smoothArea(
  1. List<Offset> p1List,
  2. List<Offset> p2List, {
  3. double ratio = 0.2,
})

给定上界点列表和下界点列表,返回组成的封闭的平滑区域路径

Implementation

static Path smoothArea(List<Offset> p1List, List<Offset> p2List, {double ratio = 0.2}) {
  Line line1 = Line(p1List, smoothRatio: ratio);
  Line line2 = Line(p2List, smoothRatio: ratio);
  return line1.merge(line2);
}