Brownian tree: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m →{{header|Perl 6}}: fix markup |
SqrtNegInf (talk | contribs) m →{{header|Perl 6}}: less 'interactive' for easier testing |
||
Line 2,489:
This solution spawns new Particles at a growing square border and displays the Tree every 50 particles and at the end using unicode UPPER/LOWER HALF BLOCK and FULL BLOCK.
{{works with|Rakudo|2015.12}}
Line 2,555 ⟶ 2,553:
}
set($x,$y);
if $spawnradius < mid && abs(($x|$y) - mid) > $spawnradius - 5 {
$spawnradius = $spawnradius + 1;
Line 2,561 ⟶ 2,558:
}
display;</lang>▼
▲display;
=={{header|Phix}}==
|