Pythagoras tree: Difference between revisions

Content added Content deleted
m (→‎{{header|J}}: slightly more efficient)
Line 415: Line 415:


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
func tree x1 y1 x2 y2 depth . .
proc tree x1 y1 x2 y2 depth . .
if depth < 8
if depth < 8
dx = x2 - x1
dx = x2 - x1