google / google/codeworld

Support for arbitrary aspect ratios in output window

Offen
#938 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Haskell
Sterne
1.3k
Forks
201
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Es werden keine Dateien oder Tests genannt. Beginne damit, das Ausgabefenster und die coordinatePlane-Funktionalität nachzuverfolgen, und untersuche dann, wie Zoomen und Schwenken derzeit die Anzeige definieren. Erledigt ist die Aufgabe, wenn nicht-quadratische Szenendimensionen unterstützt werden und dabei die bestehenden abstrakten Einheiten und das Standardverhalten erhalten bleiben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
haskell
Bereich
computer-graphics
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.