Shower thought: we delay teaching kids geometry until we can trust them not to poke someone's eye out with the pointy end of a compass.

Here's a little program to do compass-and-straightedge geometrical construction on a computer: gist.github.com/akkartik/20a0c

Follow

I finally, *really* grok immediate-mode GUIs. Compare `draw_menu`.

Before: gist.github.com/akkartik/20a0c

After: gist.github.com/akkartik/20a0c

Now I don't need variables to record where the buttons are, and code for button events lives near code for drawing the button.

· · Web · 1 · 0 · 4
Sign in to participate in the conversation
Merveilles

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.