python / python/cpython

Ruler for turtle canvas for x and y axes

オープン
#140,206 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、リクエストを turtle canvas のルーラー、canvas のスケーリング、またはドキュメントに絞り込んでください。この issue には複数の別々の目標が含まれているためです。具体例を使って、期待される軸、スケール、視覚的な動作を定義し、その後、選択した変更を検証するために必要な turtle canvas のエントリーポイントとテストを特定してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
computer-graphics
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。