F (55,50) A (25,40) G (35,25) B (10,20) D (30,10) E (45,10) C (25,5)
Active Edge List EF : x = 55, y = 50, ΔX = 10, Δy = 40, p = 0 FG : x = 55, y = 50, ΔX = 20, Δy = 25, p = 0
Active Edge List EF : x = 55, y = 49, ΔX = 10, Δy = 40, p = ? FG : x = 54, y = 49, ΔX = 20, Δy = 25, p = ?
Active Edge List FG : x = 54, y = 49, ΔX = 20, Δy = 25, p = ? EF : x = 55, y = 49, ΔX = 10, Δy = 40, p = ?
Active Edge List AB : x = 25, y = 40 ... AG : x = 25, y = 40 FG : x = 46, y = 49 ... EF : x = 53, y = 49 ...
for(x=xs; x < xe; x++) { plot(x,y) }
<svg width="200px", height="200px", viewbox="0 0 200 200"> <polygon points="70,60, 30,160 90,190 170,150 30,70 20,90 140,150 100,170 60,150 110,80" style="fill-rule: evenodd; fill: #ccffcc; stroke: green;"/> </svg>
<svg width="200px", height="200px", viewbox="0 0 200 200"> <polygon points="70,60, 30,160 90,190 170,150 30,70 20,90 140,150 100,170 60,150 110,80" style="fill-rule: nonzero; fill: #ccffcc; stroke: green;"/> </svg>