Halve each segment and push the midpoint sideways for 6 levels — a straight line becomes lightning. Strikes roam the screen, redrawing a fresh path and flickering each time

6levels · basic strike canvas · moveTo lineTo · requestAnimationFrame