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: 9375
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

My obsession with hexagons

Post by richmond62 » Sat Aug 22, 2020 8:00 pm

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: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: My obsession with hexagons

Post by dunbarx » Sun Aug 23, 2020 4:04 am

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: 9375
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: My obsession with hexagons

Post by richmond62 » Sun Aug 23, 2020 7:53 am

They fit and align just fine.
But their centres are not equidistant.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: My obsession with hexagons

Post by dunbarx » Sun Aug 23, 2020 3:05 pm

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: 9375
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: My obsession with hexagons

Post by richmond62 » Mon Aug 24, 2020 11:54 am

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 2768 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9375
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: My obsession with hexagons

Post by richmond62 » Mon Aug 24, 2020 11:56 am

The hexagonal images in my example were placed manually.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: My obsession with hexagons

Post by dunbarx » Mon Aug 24, 2020 1:17 pm

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 148 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9375
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: My obsession with hexagons

Post by richmond62 » Mon Aug 24, 2020 4:58 pm

dunbarX.png
-
It saves a lot of bother if you embed images directly. :wink:

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: My obsession with hexagons

Post by dunbarx » Fri Aug 28, 2020 5:05 pm

I will embed in the future.

What about your favorite regular polygon?

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”