Rasterize a small circle by computing one octant and reflecting each
point by symmetry.
Example
Compute one circle octant and reflect each point by symmetry.
highlighted = computed this step
Step 1 — Set up
Start with the circle center and decision value.
C=(5,5),r=4,D=−3
Step 2 — Octant point A
Reflect this octant point by symmetry.
x0y4D−3moveEoctant (0,4)
Step 3 — Octant point B
Reflect this octant point by symmetry.
x1y4D0moveSEoctant (1,4)
Step 4 — Octant point C
Reflect this octant point by symmetry.
x2y3D−1moveEoctant (2,3)
Step 5 — Octant point D
Reflect this octant point by symmetry.
x3y3D6moveSEoctant (3,3)
Step 6 — Result
The symmetric circle pixel set is complete.
circle pixels complete
midpoint-circleThe midpoint circle method tests which neighboring pixel stays closer to the ideal circle, then uses symmetry to set the matching pixels.