fillPath method

void fillPath({
  1. bool evenOdd = false,
})

Draw a surface on the previously defined shape set evenOdd to false to use the nonzero winding number rule to determine the region to fill and to true to use the even-odd rule to determine the region to fill

Implementation

void fillPath({bool evenOdd = false}) {
  var o = 0;
  assert(() {
    if (_page.settings.verbose) {
      o = _buf.offset;
      _buf.putString(' ' * (_indent));
    }
    return true;
  }());

  _buf.putString('f${evenOdd ? '*' : ''} ');
  _page.altered = true;

  assert(() {
    if (_page.settings.verbose) {
      _buf.putString(' ' * math.max(0, _commentIndent - _buf.offset + o));
      _buf.putComment('fillPath(evenOdd: $evenOdd)');
    }
    return true;
  }());
}