draws a rounded rectangle with corner `x, y` and width `w` and heght `h` and corner radius `r`
(double x, double y, double w, double h, double r)
| 493 | /** |
| 494 | * draws a circle at `x, y` with radius `r`. |
| 495 | */ |
| 496 | public FLine circle(double x, double y, double r) { |
| 497 | double k = 0.5522847498f * r; |
| 498 | this.moveTo(x, y - r); |
| 499 | this.cubicTo(x + k, y - r, x + r, y - k, x + r, y); |
| 500 | this.cubicTo(x + r, y + k, x + k, y + r, x, y + r); |
| 501 | this.cubicTo(x - k, y + r, x - r, y + k, x - r, y); |
no test coverage detected