Content deleted Content added
m Open access bot: url-access updated in citation with #oabot. |
→Algorithm: Fixes incorrect rendering of endpoints. Previously, integer endpoints were rendered at 50% brightness rather than 100%, contrary to Wu’s original 1991 algorithm. |
||
Line 58:
// handle first endpoint
xend :=
yend := y0 + gradient * (xend - x0)
xgap :=
xpxl1 := xend // this will be used in the main loop
ypxl1 := ipart(yend)
Line 73:
// handle second endpoint
xend :=
yend := y1 + gradient * (xend - x1)
xgap :=
xpxl2 := xend //this will be used in the main loop
ypxl2 := ipart(yend)
|