Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c82812a

Browse files
Update README.md
1 parent cb89cea commit c82812a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

‎README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,26 @@ The application uses the Turtle graphics library to draw the spider web. The cod
3737
![](https://github.com/hrosicka/PythonBasicsTurtle/blob/master/doc/SpiderWeb.png)
3838

3939
## kytice.py
40-
- flower - you can choose size of flower and five colors - everything depends on you
41-
- black background
40+
It provides instructions on how to use the Flower application, which draws a flower using the Turtle graphics library.
41+
### Application Window
42+
The application window displays a flower with colorful petals. The background of the window is black, and the title of the window is "Flower".
43+
### How It Works
44+
The application uses the Turtle graphics library to draw the flower. The code defines two functions:
45+
- **okvetniListky(t, s, count, col1, col2):** This function draws a layer of petals. It takes five arguments:
46+
- **t:** The Turtle object that will be used to draw the petals.
47+
- **s:** The size of the petals.
48+
- **count:** The number of petals in the layer.
49+
- **col1:** The fill color of the petals.
50+
- **col2:** The outline color of the petals.
51+
- **kvetina(t, s, col1, col2, col3, col4):** This function draws a flower. It takes six arguments:
52+
- **t:** The Turtle object that will be used to draw the flower.
53+
- **s:** The size of the flower.
54+
- **col1:** The color of the outer petals.
55+
- **col2:** The alternate color of the outer petals.
56+
- **col3:** The color of the middle petals.
57+
- **col4:** The color of the center of the flower.
58+
The code then creates a new Turtle object and sets its properties, such as speed and pen size. The code then calls the kvetina function to draw the flower.
59+
4260
#### examples
4361
![](https://github.com/hrosicka/PythonBasicsTurtle/blob/master/doc/Flower.png)
4462
![](https://github.com/hrosicka/PythonBasicsTurtle/blob/master/doc/Flower2.png)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /