Line Drawing Algorithms — compiled C → WASM → Canvas
Direct, DDA and Bresenham, run from a freestanding (no-libc) WebAssembly module.
Draw a line
Direct
DDA
Bresenham
x1 (0–99)
y1 (0–79)
x2 (0–99)
y2 (0–79)
Algorithm
Direct / Incremental
DDA
Bresenham
Show grid lines
Draw line
Compare all three
Clear canvas
Loading line_draw.wasm…