curve static method

OpSet curve(
  1. List<PointD> points,
  2. DrawConfig config
)

Implementation

static OpSet curve(List<PointD> points, DrawConfig config) {
  final List<Op> op1 = OpsGenerator.curveWithOffset(
      points, 1 * (1 + config.roughness! * 0.2), config);
  final List<Op> op2 = OpsGenerator.curveWithOffset(
      points, 1.5 * (1 + config.roughness! * 0.2), config);
  return OpSet(type: OpSetType.path, ops: op1 + op2);
}