Sierpinski Fractal by kt3k

a=' /\ ','/__\\'
_=' '
50.upto(getc){_*=2;a=a.map{|x|_+x+_}+a.map{|x|x+x}}
puts a.map{|x|x.rstrip}

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

download

return to the top page