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:
|
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: |
|||
|
|
|
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. |
|||||||||||
|