Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fractal(pic, n) {
- return n === 1
- ? pic
- : beside_frac(1/2, pic, fractal(stack_frac(0.5, pic, pic), n - 1));
- }
- // Test
- show(fractal(make_cross(rcross), 5));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement