Mask.circle(num x, num y, num radius)

Create a circular mask.

Source

factory Mask.circle(num x, num y, num radius) {
  var graphics = new Graphics();
  graphics.circle(x, y, radius);
  graphics.fillColor(Color.Magenta);
  return new _GraphicsMask(graphics);
}