|
2 | 2 | Drawing using Python Turtle
|
3 | 3 |
|
4 | 4 | ## crazyvilllage.py
|
5 | | -- houses arranged in a spiral shape |
6 | | -- black background |
| 5 | +It provides instructions on how to use the Crazy Village application, which draws a village using the Turtle graphics library. |
| 6 | +### Application Window |
| 7 | +The application window displays a village with houses of different sizes and colors. The background of the window is black, and the title of the window is "Crazy Village". |
| 8 | +### How It Works |
| 9 | +The application uses the Turtle graphics library to draw the village. The code defines a function called domecek that draws a house. The function takes three arguments: |
| 10 | +- **t:** The Turtle object that will be used to draw the house. |
| 11 | +- **velikostDomecku:** The size of the house. |
| 12 | +- **barva:** The color of the house. |
| 13 | +The code then creates a new Turtle object and sets its properties, such as shape, speed, and pen size. The code then uses a for loop to draw 20 houses. For each house, the code generates a random color and size, and then calls the domecek function to draw the house. The application draws a village with 20 houses of different sizes and colors. Houses are arranged in a spiral shape |
| 14 | + |
7 | 15 | 
|
8 | 16 |
|
9 | 17 | ## vesnice.py
|
|
0 commit comments