fill_circle
Mojo function 🡭
fill_circle
fn def fill_circle(mut canvas: Canvas, cx: Int, cy: Int, radius: Int, color: Color)Fill a solid disk, one horizontal span per row, so each pixel is set exactly once and a translucent color never double-blends.
Hard-edged; fill_circle_aa has a smooth edge.
Args:
- canvas (
Canvas): Canvas to fill into. - cx (
Int): Center x. - cy (
Int): Center y. - radius (
Int): Circle radius in pixels. - color (
Color): Fill color.