Sierpinski Fractal by nn

n=1<<System.in.read()-48
n.times{i->println((1..n).sum{int k=it-n+i
k<0?' ':~i&k?'  ':i%2?k%2?'_\\':'/_':'/\\'})}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page