Anonymous user
Brownian tree: Difference between revisions
→{{header|Processing}}: It is not very Processing-like to have a long wait and draw a single frame of draw()... so now you see the tree growing (slowly).
SqrtNegInf (talk | contribs) (→{{header|Sidef}}: Fix link: Perl 6 --> Raku) |
(→{{header|Processing}}: It is not very Processing-like to have a long wait and draw a single frame of draw()... so now you see the tree growing (slowly).) |
||
Line 2,929:
void draw() {
int y = floor(random(height));▼
return;
▲ if (isTaken[x][y]) { continue; }
}
0 <= xp && xp < width && ▼
);
} else
if (SIDESTICK || (iscontained && isTaken[xp][yp])) {
else {▼
set(x,
}
}
}
if (frameCount > width * height) noLoop();
}</lang>
|