3
\$\begingroup\$

I'm trying to draw a hexagon grid in my Android application. I don't want to reinvent the wheel here, so I'm looking for some frameworks/libraries or just some basic ideas about how should one do this. Do you have some ideas?

What I found so far:

\$\endgroup\$
6
\$\begingroup\$

The math applies to any platform, of course. Since you asked for basic ideas on how to do this: just use the code from the first link you provided. The java code for implementing all the required formulas is present and could be used as-is. Then you have an excellent example of how to tie that class into your existing code. Use the source from the simple java test applet as a guide to help you integrate this into your code.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.