Brownian tree: Difference between revisions
m
→{{header|Uiua}}: layout
m (→{{header|Uiua}}: layout) |
|||
Line 5,422:
=={{header|Uiua}}==
Uiua Pad will show well-shaped arrays as images directly. If running locally you can uncomment the final few lines to save it as a file instead. (Running local is ~10 times faster too.)
[[File:UiuaBrownianTree.png|thumb]] Sample with higher values than provided code.▼
The main move loop passes round a pair of points: here and previous position, so when we hit a set cell we can just back up one.
Line 5,460 ⟶ 5,459:
⍜now⍥(⍜⊡(+1)◌°⊟⍢Nx(=0⊡⊢)Sd)500
</syntaxhighlight>
{{out}}
=={{header|Visual Basic .NET}}==
|