Warning: Update in progress.
Before adding new content, I'm going through and updating the content
that already existed that I haven't touched in years.
Also fixing up a lot of CSS.
I wrote bad code a very long time ago and it's taking a while to update
it.
This page has not been looked at yet My apologies for any issues this may cause.
This page has not been looked at yet My apologies for any issues this may cause.
8.1 : Bresenham's
Okay I should probably actually fill in the actual material for this section at some point, but I had this idea for a thing and it's really cute.
plotLine(x0,y0, x1,y1) dx = x1-x0 dy = y1-y0 y = y0 e = 0 for x from x0 to x1 plot(x,y) e = e + dy if 2*e > dx y = y+1 e = e - dx
Basically, the textareas give you the values for (x0, y0)
and (x1, y1)
.
These can be randomly generated or you can enter your own values.
Click on each cell to select it.
Click again to deselect it.
(x0, y0) | (x1, y1) | |||
(, ) | (, ) | |||