google / google/codeworld

Support for arbitrary aspect ratios in output window

Aperta
#938 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Haskell
Stelle
1.3k
Fork
201
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I wonder how difficult it would be to have support for arbitrary aspect ratios in the output, because a square output limits student possibilities to create interesting scenes, since most devices are actually not square. Restricting the window to be square forces them to waste a lot of space for their scene in the horizontal direction, especially when compared with similar environments that target the same population.

One of the things I like the most about CodeWorld is the fact that the output uses abstract display units instead of pixels or other device-dependent units. Also, I think 10x10 is a good default choice for a general drawing. However, I don't see why choosing to build a 15x10 scene would be a problem, especially now that there are built-in controls to zoom and pan the output.

The only possible problem could be the `coordinatePlane` facility, which I think should be a function anyway, so that the span and resolution are configurable. This could be also important for using CodeWorld as a programmable graphing calculator, for which it has a lot of potential.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non vengono indicati file o test. Inizia tracciando la finestra di output e la funzionalità coordinatePlane, quindi esamina come lo zoom e il panning definiscono attualmente la visualizzazione. Il lavoro è completato quando sono supportate dimensioni della scena non quadrate, preservando le unità astratte esistenti e il comportamento predefinito.

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

Valutazione

Stack tecnologico
haskell
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.