My obsession with hexagons

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10416
Joined: Fri Feb 19, 2010 10:17 am

My obsession with hexagons

Post 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?
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: My obsession with hexagons

Post 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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10416
Joined: Fri Feb 19, 2010 10:17 am

Re: My obsession with hexagons

Post by richmond62 »

They fit and align just fine.
But their centres are not equidistant.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: My obsession with hexagons

Post 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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10416
Joined: Fri Feb 19, 2010 10:17 am

Re: My obsession with hexagons

Post 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 4437 times
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10416
Joined: Fri Feb 19, 2010 10:17 am

Re: My obsession with hexagons

Post by richmond62 »

The hexagonal images in my example were placed manually.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: My obsession with hexagons

Post 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 254 times
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10416
Joined: Fri Feb 19, 2010 10:17 am

Re: My obsession with hexagons

Post by richmond62 »

dunbarX.png
-
It saves a lot of bother if you embed images directly. :wink:
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: My obsession with hexagons

Post by dunbarx »

I will embed in the future.

What about your favorite regular polygon?

Craig
Post Reply