Hexagonal Buttons

When creating the Musician’s Calculator iPhone app for ToruSound, I wanted the buttons to be more ergonomic and also wanted to be able to render them in patterns that made sense with regard to the underlying science, such as a “circle” of fifths surrounding “triangular” base-10 digit buttons, as well as piano-style buttons for producing actual musical pitches.

The source code for the hexagonal buttons (which is compatible with the Xcode interface designer) is up on GitHub:

https://github.com/DanielLewisRandall/iOpenCalculator/blob/master/OpenCalculator/OpenCalculator/UIHexButton.h

https://github.com/DanielLewisRandall/iOpenCalculator/blob/master/OpenCalculator/OpenCalculator/UIHexButton.m