Settings

Theme

Show HN: Interactive Explainer for DDA Line Drawing Algorithm

aaaa.sh

2 points by amjoshuamichael a year ago · 3 comments · 1 min read

Reader

I never fully understood the DDA algorithm for drawing lines on pixel / voxel grids. I like to learn by teaching, so I figured it out, and wrote a blog post explaining it. Also, all the code examples in the blogpost are interactive and modifiable.

I often see explainers for programming algorithms or concepts and want to boot up a JS scratchpad to mess around with the ideas, so I can get a better feel for the material. In this format, the scratchpad is built-in and ready to go.

I figured the HN crowd would appreciate the format & and the content.

rschachte a year ago

Beautiful diagram. Is this just SVG or?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection