You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It provides instructions on how to use the Levitating Village application, which draws a levitating village using the Turtle graphics library.
19
+
### Application Window
20
+
The application window displays a village with houses of different sizes and colors levitating in a black space. The title of the window is "Levitating Village".
21
+
### How It Works
22
+
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:
23
+
-**t:** The Turtle object that will be used to draw the house.
24
+
-**velikost:** The size of the house.
25
+
-**barva:** The color of the house.
26
+
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 100 houses. For each house, the code generates a random position, color, and size, and then calls the domecek function to draw the house.
0 commit comments