Skip to content

Instantly share code, notes, and snippets.

@rwohleb
Created September 27, 2013 19:23
Show Gist options
  • Save rwohleb/6733890 to your computer and use it in GitHub Desktop.
Save rwohleb/6733890 to your computer and use it in GitHub Desktop.
Python fractal
print (lambda r,w,h:"\n".join("".join((" ","▲")[c]
for c in s)for s in reduce(lambda a,y:a+[[r>>(a[y][x-1]*4+a[y][x]*2+a[y][(x+
1)%w])&1for x in range(w)]],range(h),[[0]*(w/2)+[1]+[0]*(w/2)])))(90,63,31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment