fillCircle method
void
fillCircle(})
override
Fill a circle at (x
,y
) with radius
.
Implementation
@override
void fillCircle(num x, num y, num radius, PStyle style,
{num startAngle = 0, num endAngle = 360}) {
x = transform.x(x);
y = transform.y(y);
var clip = _clip;
if (clip != null) {
var w = radius * 2;
var box = PRectangle(x, y, w, w);
var r = clip.intersection(box);
if (r.isZeroDimension) return;
_callClipped(clip, box,
() => _fillCircleImpl(x, y, radius, style, startAngle, endAngle));
} else {
_fillCircleImpl(x, y, radius, style, startAngle, endAngle);
}
}