Port of https://github.com/megaknoc/mini_hexagon for iPhone