Cantor set: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 902: | Line 902: | ||
int WIDTH = 81 |
int WIDTH = 81 |
||
int HEIGHT = 5 |
int HEIGHT = 5 |
||
⚫ | |||
⚫ | |||
fun cantor = void by int start, int len, int index |
fun cantor = void by int start, int len, int index |
||
int seg = len / 3 |
int seg = len / 3 |
||
Line 913: | Line 915: | ||
cantor(start + seg * 2, seg, index + 1) |
cantor(start + seg * 2, seg, index + 1) |
||
end |
end |
||
⚫ | |||
⚫ | |||
cantor(0, WIDTH, 1) |
cantor(0, WIDTH, 1) |
||
for each text line in lines do writeLine(line) end |
for each text line in lines do writeLine(line) end |