Expand a stored L-system and interpret its command string as an SVG turtle path.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
At every depth, each symbol is replaced in parallel by the chosen production rule. A turtle draws on F, A, B, and G, turns on plus or minus, saves state at an opening bracket, restores it at a closing bracket, then scales all paths into the view box.
Type: koch snowflake Depth: 4
Graphics classes compare Koch iterations, L-system exercises inspect rewrite growth, and SVG demonstrations visualize branch stacks.