# 06.รูปดาว

{% code lineNumbers="true" fullWidth="true" %}

```python
from turtle import *  # นำเข้าฟังก์ชันและคลาสทั้งหมดจากโมดูล Turtle เพื่อให้สามารถใช้งานได้โดยไม่ต้องพิมพ์ชื่อโมดูลทุกครั้ง
pensize(10)  # ตั้งค่าความหนาของเส้นปากกาเป็น 10 หน่วย
pencolor('purple')  # ตั้งค่าสีของปากกาเป็นสีม่วง
for x in range(5):  # เริ่มลูป 5 ครั้ง ซึ่งจะทำให้เกิดการวาดรูปดาว 5 แฉก
    fd(200)  # เคลื่อนที่ไปข้างหน้า 200 หน่วย
    rt(144)  # หมุนกระดองเต่าไปทางขวา 144 องศา เพื่อสร้างมุมของดาว
mainloop()  # รักษาหน้าจอวาดรูปไว้ ไม่ให้ปิดหลังจากวาดเสร็จ เพื่อให้เราสามารถเห็นภาพที่วาด
```

{% endcode %}

<figure><img src="/files/9z6bSDNJpQ3aPM5rOvNj" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://krootee.gitbook.io/python-turtle/1.example01-10/06..md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
