Skip to content

Commit d7c37bd

Browse files
committed
style(barevnyornament.py): reformat with black
1 parent 2f58f37 commit d7c37bd

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎barevnyornament.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# nakreslí vesnici pomocí knihovny turtle
2-
2+
33
from turtle import exitonclick, bgcolor, title, colormode
44
import turtle
55
from random import randint
66

7+
78
def cara(t, strana, barva):
89

910
t.pencolor(barva)
1011
t.forward(strana)
1112
t.left(60)
1213

13-
def main():
14+
15+
def main():
1416

1517
# barva pozadí okna
1618
bgcolor("aqua")
@@ -36,7 +38,6 @@ def main():
3638
green = 255
3739
blue = 0
3840

39-
4041
for _ in range(255):
4142
# nahodné odstíny fialové
4243
barva = (0, green, blue)
@@ -48,5 +49,6 @@ def main():
4849
# zavření okna
4950
exitonclick()
5051

52+
5153
if __name__ == "__main__":
52-
main()
54+
main()

0 commit comments

Comments
 (0)