google / google/codeworld

Adjustable runtime Parameters

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

Descrizione

I was working on trying to get a nice looking [fibonacci tree][1], and I had two constants
```
branchAngle = 30
splayAngle = 30
```
which I keep tweaking, but it's hard to get them right. It'd be pretty neat if I could mark them as "Parameters" or something, and have sliders for their values to adjust and see what happens in realtime, instead of recompiling all the time.

But I'm not sure how it'd look for the code. I mean, it could just be a reader monad, `(Parameters -> Picture)` kinda thing, but that seems like a massive change to the fundementals to have to write everything in monadic style now.

[1]: https://code.world/#PbBOAouMSCYKTj4rseeuyZg

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.