python / python/cpython

Ruler for turtle canvas for x and y axes

Open
#140,206 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib topic-tkinter type-feature
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by narrowing the request to the turtle canvas ruler, canvas scaling, or documentation, since the issue combines several separate goals. Define the expected axes, scale, and visual behavior with concrete examples, then identify the turtle canvas entry point and tests needed to verify the selected change.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.