Alexandre B A Villares 2018-12-25 11:42:25 -02:00
rodzic 4e400da77d
commit 29183f2f92
12 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -64,11 +64,11 @@ class Cell():
stroke(0, 0, 200, 50)
rect(0, 0, siz, siz)
#text(self.type, 0, 0)
if self.type == "11110": # inv t
if self.type == "11110": # inv t
rotate(PI)
if self.type == "11101": # t r
if self.type == "11101" or self.type == "01110": # t r & i
rotate(HALF_PI)
if self.type == "10111": # t r
if self.type == "10111": # t l
rotate(PI + HALF_PI)
for i in range(-4, 5, 4): # (-28, 29, 7):
@ -100,16 +100,16 @@ class Cell():
quarter_circle(-l, l, c + i, TOP + RIGHT)
#quarter_circle(l, -l, c + i, BOTTOM + LEFT)
ellipse(0, 0, (a + i) * 2, (a + i) * 2)
elif self.type == "10101":
line(a + i, -l, a + i, l)
elif self.type == "10101" or self.type == "01110":
line(+a - i, -l, +a - i, l)
line(-a + i, -l, -a + i, l)
#half_circle(0, l, a - i, TOP)
#half_circle(0, -l, a - i, BOTTOM)
elif self.type == "01110":
line(-l, a + i, l, a + i)
line(-l, -a + i, l, -a + i)
#half_circle(-l, 0, a - i, RIGHT)
#half_circle(l, 0, a - i, LEFT)
# elif self.type == "01110":
# line(-l, a + i, l, a + i)
# line(-l, -a + i, l, -a + i)
# half_circle(-l, 0, a - i, RIGHT)
# half_circle(l, 0, a - i, LEFT)
elif self.type == "11100":
half_circle(-l, 0, a - i, RIGHT)
half_circle(0, -l, a - i, BOTTOM)
@ -131,7 +131,7 @@ class Cell():
elif self.type == "10100":
half_circle(0, -l, a - i, BOTTOM)
elif self.type == "00100":
ellipse(0, 0, (a - i) * 2, (a -d i) * 2)
ellipse(0, 0, (a - i) * 2, (a - i) * 2)
# ellipse(0, 0, (a + i) * 2.0, (a + i) * 2.0)
# ellipse(0, 0, (a - i) * 2.5, (a - i) * 2.5)

BIN
s360/s360.gif 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 590 KiB

BIN
s360/s360_530.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 51 KiB

BIN
s360/s360_568.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 97 KiB

BIN
s360/s360_643.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 113 KiB

BIN
s360/s360_706.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 51 KiB

BIN
s360/s360_729.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 110 KiB

BIN
s360/s360_758.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 49 KiB

BIN
s360/s360_785.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 87 KiB

BIN
s360/s360_804.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 76 KiB

BIN
s360/s360_821.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 47 KiB

BIN
s360/s360_910.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 47 KiB