python / python/cpython

Ruler for turtle canvas for x and y axes

未關閉
#140,206 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

stdlib topic-tkinter type-feature
主要語言
Python
星號
77.2k
分支
35.9k
PR 合併指標
PR 指標待擷取

描述

FAO: Marie Roald and Yngve Mardal Moe

I use graph paper to do designs in turtle. The smallest square on graph paper is 2mm squared, this is the equivalent of 10 turtle steps. The numbers work with the y-axis (0,230) to (0,-230) and the x-axis (-620,0) to (620,0). The visual output on the turtle canvas is scaled down by a ratio of 2:1. To mimic how the design looks on the graph paper is challenging, so I use a square that is 5ts squared (turtle steps). The canvas image is understandably smaller but for complex designs (e.g. Celtic Knots) the turtle output accurately displays the design at that scale.
FYI,
Turtle Demo examples are used in high schools (secondary schools) all over the United Kingdom but only to change a line of code to see the effect (usually the color string). If a ruler were added this might result in greater use of turtle. Additionally, the turtle specification (Python Docs) and the color strings are not well-known in the classrooms. This too is a hindrance to future use of turtle. Consider what is on Instagram regarding turtle.
Finally, the canvas scale needs to be altered because the solution to a Pythagoras Theorem (c2=a2+b**2) cannot be displayed correctly in the turtle canvas. The points will not connect to create a right-angled triangle.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先將請求範圍縮小到 turtle canvas 尺規、canvas 縮放或文件,因為此 issue 結合了多個彼此獨立的目標。使用具體範例定義預期的座標軸、比例和視覺行為,然後確定 turtle canvas 的進入點以及驗證所選變更所需的測試。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
computer-graphics
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。