Page 1 of 1

My obsession with hexagons

Posted: Sat Aug 22, 2020 8:00 pm
by richmond62
Started when I was aout 16-17 in 1979 . . .

However, LiveCode is not all that good hexagonally . . .
-
Screenshot 2020-08-22 at 21.54.15.png
-
As it seems quite unable to position hexagons so they are equidistant from each other.

Which, as the inventor of Hexatafl (and so on) is a bit of a problem:
-
Hexatafl.jpg
-
I wonder if anyone has found a way round this problem?

Re: My obsession with hexagons

Posted: Sun Aug 23, 2020 4:04 am
by dunbarx
Richmond.

Not sure what you mean. I have positioned hexagons, closely packed, without issue. They fit and align just fine.

In your picture, they seem to do so as well.

????

Craig

Re: My obsession with hexagons

Posted: Sun Aug 23, 2020 7:53 am
by richmond62
They fit and align just fine.
But their centres are not equidistant.

Re: My obsession with hexagons

Posted: Sun Aug 23, 2020 3:05 pm
by dunbarx
Richmond.

I made a bunch of stock hexagons and laid them out with their sides overlapping perfectly. I measured the loc of each, and found that the centers were equidistant from each other in both X and Y.

Now there may be an issue with grcs that are one pixel larger, since successive locs might have a slight rounding error. But what are you seeing?

Craig

Re: My obsession with hexagons

Posted: Mon Aug 24, 2020 11:54 am
by richmond62
But what are you seeing?
Well, as it is my last week before I begin teaching again it is the bottom of a beer glass. 8)

Hexagonal, of course:
-
Screenshot 2020-08-24 at 13.54.03.png
Screenshot 2020-08-24 at 13.54.03.png (55.28 KiB) Viewed 3626 times

Re: My obsession with hexagons

Posted: Mon Aug 24, 2020 11:56 am
by richmond62
The hexagonal images in my example were placed manually.

Re: My obsession with hexagons

Posted: Mon Aug 24, 2020 1:17 pm
by dunbarx
Hi.

I placed mine manually as well, visually overlapping the edges so they appeared as a single pixel-wide line. These were dragged right from the tool palette. I did not try enlarging each graphic one pixel in each dimension to see if the rounding error actually makes a difference.

But the displacement in X was 176, and the displacement in Y was 102

Craig
Screen Shot 2020-08-24 at 8.19.34 AM.zip
(74.48 KiB) Downloaded 199 times

Re: My obsession with hexagons

Posted: Mon Aug 24, 2020 4:58 pm
by richmond62
dunbarX.png
-
It saves a lot of bother if you embed images directly. :wink:

Re: My obsession with hexagons

Posted: Fri Aug 28, 2020 5:05 pm
by dunbarx
I will embed in the future.

What about your favorite regular polygon?

Craig