hexagonal-tiles Questions
3
What I am looking for is a method or class that allows me to display a list of hexagons in a grid. Ideally I would then be able to use some form of set-method to change the color/hatching/border of...
Shelli asked 27/10, 2014 at 8:32
4
Solved
I am trying to create a shape similar to this, hexagons with 12 pentagons, at an arbitrary size.
(Image Source)
The only thing is, I have absolutely no idea what kind of code would be needed to...
Rosenberg asked 16/10, 2017 at 19:20
2
Solved
I'm making a hexagon tile based game, which generates a honeycomb arrangement of hexagons in a spiral shape. My goal is to convert a world position (e.g. a mouse click) to a spiral coordinate (inde...
Dariusdarjeeling asked 9/1, 2023 at 16:30
11
Solved
What I am trying to do is find how many hexagons are in between two points on a hex grid. I have tried searching online for a formula but I have not been able to find one that matches the type of h...
Prohibitionist asked 23/1, 2013 at 23:40
3
Solved
I am trying to roll up 19 lines of code into a single for loop, but I am feeling a bit stumped. The reason I ask, is because I want the grid to be other sizes instead of 5.
In Main::drawHexGridAdva...
Domitiladomonic asked 22/12, 2013 at 21:56
5
Solved
I am attempting to create a grid based game. so far i have a hexagonal tile based grid, with a coordinate scheme as shown below:
col 0
| col 1
| | col 2
| | |
__ | __ __ __ __
/00\__/02\__/04...
Pulse asked 4/3, 2014 at 18:44
9
Solved
I have a map made up of rows and columns of hexagons
This isn't an actual image of the hex-map I am using, but uses the same size and shape hexagons
I need to be able to tell which one the mouse is...
Refutation asked 9/10, 2011 at 17:31
3
Solved
I'd like to generate some square plots that have arrays of hexagons inside of them, like drawn here. I'd like to plot both regular (geometrically regular) and abnormal hexagon tessellations, so I d...
Dock asked 8/11, 2016 at 4:41
2
Solved
I'm using the following procedure to calculate hexagonal polygon coordinates of a given radius for a square grid of a given extent (lower left --> upper right):
def calc_polygons(startx, starty, e...
Su asked 1/11, 2014 at 16:3
5
Solved
I'm trying to come up with an iterative function that generates xyz coordinates for a hexagonal grid. With a starting hex position (say 0,0,0 for simplicity), I want to calculate the coordinates fo...
Alkane asked 12/1, 2010 at 13:24
14
Many strategy games use hexagonal tiles. One of the main advantages is that the distance between the center of any tile and all its neighboring tiles is the same.
I was wondering if anyone h...
Retouch asked 14/4, 2009 at 20:34
3
Solved
This is my code:
import matplotlib.pyplot as plt
from matplotlib.patches import RegularPolygon
import numpy as np
offCoord = [[-2,-2],[-1,-2],[0,-2],[1,-2],[2,-2]]
fig, ax = plt.subplots(1)
ax....
Randolphrandom asked 26/11, 2019 at 0:47
1
Solved
Goal
I'm attempting to build an application whereby the whole world map is split into a large number of hexagons. These hexagons, once generated would always cover the same area on the map. Then,...
Urial asked 22/4, 2019 at 17:15
4
I'm making a game with hexagonal tiles, and have decided upon using a triangular/hexagonal grid. I found this question which helped me generate coordinates, and slightly modified the code to store ...
Ghost asked 7/7, 2012 at 7:23
2
Solved
I have the goal to create a field of hexagonal tiles. I have come as far as having a matrix of cells, each high enough to fit the complete hexagon image:
import javafx.application.Application;
imp...
Uta asked 13/1, 2019 at 2:21
7
Solved
I have a hexagon grid:
with template type coordinates T. How I can calculate distance between two hexagons?
For example:
dist((3,3), (5,5)) = 3
dist((1,2), (1,4)) = 2
Tannie asked 10/4, 2013 at 7:39
2
Solved
I have a 2d hexagon density plot with many points. I would like the counts within the hexagons to be displayed on a logarithmic scale, but I can't figure out how to do this through ggplot2.
Here ...
Mattress asked 15/10, 2014 at 3:37
2
Solved
I have the nice hexbin plot below, but I'm wondering if there is any way to get hexbin into an Aitoff projection? The salient code is:
import numpy as np
import math
import matplotlib.pyplot as pl...
Cynewulf asked 20/9, 2017 at 11:22
2
Solved
I have to do a "grid" like this:
Harmonic table
I'm trying to create a ListView with ItemsSource="List<Note>" where every odd note in the list is moved on the bottom...
Is the ListView th...
Kayseri asked 18/9, 2009 at 10:4
2
Solved
I wanted to make a tile-based world on a sphere. I would like to use hexagon-shaped tiles, though as far as I can figure out you need to have pentagons in there too to make it fit.
So, my question...
Latent asked 11/10, 2012 at 20:7
1
Solved
I need to have hexagonal grid on a spherical surface. like shown here.
Right now I am doing a hexagonal flattened grid.
and the projecting it onto the surface of a hemisphere. Like here,
But...
Delouse asked 6/2, 2017 at 13:50
5
Solved
I'm making an HTML5 canvas hexagon grid based system and I need to be able to detect what hexagonal tile in a grid has been clicked when the canvas is clicked.
Several hours of searching and tryin...
Godfry asked 23/11, 2016 at 23:47
6
Solved
For a square grid the euclidean distance between tile A and B is:
distance = sqrt(sqr(x1-x2)) + sqr(y1-y2))
For an actor constrained to move along a square grid, the Manhattan Distance is a bet...
Binni asked 22/2, 2011 at 22:30
6
Solved
Help to find an algorithm for creating cells by spiral on the hexagonal field.
Look at the image:
Let's imagine an dimensionless 2d array.
The X axis is the blue line, Y is horizontal, spiral ...
Standoffish asked 26/1, 2010 at 20:34
1
Solved
I am using flat topped hexagonal grid (following the manual listed here http://www.redblobgames.com/grids/hexagons/).
I need to convert my cube coordinates into pixel coordinates. I have read H...
Viv asked 28/9, 2015 at 15:54
1 Next >
© 2022 - 2025 — McMap. All rights reserved.