python / python/cpython

Ruler for turtle canvas for x and y axes

Aperta
#140,206 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

stdlib topic-tkinter type-feature
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia restringendo la richiesta al righello del turtle canvas, al ridimensionamento del canvas o alla documentazione, poiché l’issue combina diversi obiettivi separati. Definisci gli assi, la scala e il comportamento visivo attesi con esempi concreti, quindi identifica il punto di ingresso del turtle canvas e i test necessari per verificare la modifica selezionata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
computer-graphics
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.