oval function

void oval(
  1. Painter p,
  2. num cx,
  3. num cy,
  4. num rx,
  5. num ry,
  6. int c, [
  7. double a = 1.0,
  8. bool keep(
    1. double g
    )?,
])

A 1 px oval (a ring on a tilted plane): centre (cx, cy), radii rx, ry. keep picks the part to draw.

Implementation

void oval(
  Painter p,
  num cx,
  num cy,
  num rx,
  num ry,
  int c, [
  double a = 1.0,
  bool Function(double g)? keep,
]) {
  ovalShaded(p, cx, cy, rx, ry, color: (_) => c, alpha: (_) => a, keep: keep);
}