File: adv_sierpinsky.py

package info (click to toggle)
turing 0.11~beta-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,152 kB
  • sloc: python: 103,898; xml: 101; makefile: 50; sh: 29
file content (9 lines) | stat: -rw-r--r-- 163 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
g_window(-10, 100, 100, -10)

order = 5
size = 2 ** order

for y in range(size):
    for x in range(size):
        if x & y == 0:
            g_point(x * 2, y * 2)