Re: Tessellated hexagonal grid?

2018-07-01 Thread David V Glasgow via use-livecode
Most excellent! > On 30 Jun 2018, at 1:26 am, hh via use-livecode > wrote: > > A simple hexagonal grid creating stack: > http://forums.livecode.com/viewtopic.php?p=168657#p168657 > > You choose the number of rows and columns and, for "scaling", > the horizontal radius and vertical radius of

Re: Tessellated hexagonal grid?

2018-06-30 Thread Richmond Mathewson via use-livecode
Marvellous. Thank you very much indeed! Richmond. On 30/6/2018 3:26 am, hh via use-livecode wrote: A simple hexagonal grid creating stack: http://forums.livecode.com/viewtopic.php?p=168657#p168657 You choose the number of rows and columns and, for "scaling", the horizontal radius and

Re: Tessellated hexagonal grid?

2018-06-29 Thread hh via use-livecode
A simple hexagonal grid creating stack: http://forums.livecode.com/viewtopic.php?p=168657#p168657 You choose the number of rows and columns and, for "scaling", the horizontal radius and vertical radius of the circumellipses. ___ use-livecode mailing

Re: Tessellated hexagonal grid?

2018-06-29 Thread Richmond Mathewson via use-livecode
Come to think of things, I ran off a load of tessellating hexagons in Turtle Graphics about 2 weeks ago using fekking code blocks. Richmond. On 29/6/2018 8:53 pm, Richmond Mathewson wrote: I cannot for the life of me work out why it is relatively easy to tessellate hexagons in BBC BASIC on

Re: Tessellated hexagonal grid?

2018-06-29 Thread Richmond Mathewson via use-livecode
I cannot for the life of me work out why it is relatively easy to tessellate hexagons in BBC BASIC on my BBC MODEL B while it is such a P.I.A. in LiveCode.

Re: Tessellated hexagonal grid?

2018-06-29 Thread Phil Jimmieson via use-livecode
Hi David, Even with complex shapes, it’s pretty easy (once you have a template version) just to clone it, and then place it appropriately (and obviously that can be based on its centre, or, as you say, the edges of its rectangle). The maths shouldn’t be that hard (& I speak as someone who hates

Re: Tessellated hexagonal grid?

2018-06-29 Thread David V Glasgow via use-livecode
Not sure whether you really want to know or not ;-) Richmond puts his finger on it really. Most of the properties of a graphic polygon don’t relate to geometric features of the polygon itself - except when it is a rect. So, as Richard says, tiling them or otherwise changing properties of

Re: Tessellated hexagonal grid?

2018-06-27 Thread Bob Sneidar via use-livecode
I would agree if I understood one word of it, or even what the problem was this approach was trying to solve. Bob S > On Jun 27, 2018, at 08:42 , Rick Harrison via use-livecode > wrote: > > Great resource and read. > > Thanks! > > Rick > >> On Jun 27, 2018, at 5:30 AM, hh via

Re: Tessellated hexagonal grid?

2018-06-27 Thread Richard Gaskin via use-livecode
David V Glasgow wrote: > I had already worked through the ‘redblobgames’ resources, and it was > the prospect of trying to implement a hex system in Livecode which was > the gotcha. > > The frustrating thing is that the polygon object displays a nice > scaleable hex - and yet it seems this is

Re: Tessellated hexagonal grid?

2018-06-27 Thread Rick Harrison via use-livecode
Great resource and read. Thanks! Rick > On Jun 27, 2018, at 5:30 AM, hh via use-livecode > wrote: > > Here a rather complete guide to the "theory" with a link > to implementation guides for several programming languages, > especially, close to LC, JavaScript. > >

Re: Tessellated hexagonal grid?

2018-06-27 Thread Stephen Barncard via use-livecode
"If I pretend I am a flat-earther, and that the earth I live on is hexagonal, I want all those people who are silly enough to believe that the world is spherical to fall off the hexagonal earth at the vertices of the hexagon, and not the vertices of some other polygonal shape that encloses my

Re: Tessellated hexagonal grid?

2018-06-27 Thread Richmond Mathewson via use-livecode
One of the problems about any polygonal shape in LiveCode is that it still subsists inside a square/rectangle. That might seem like a crashingly obvious remark until one starts to consider how squares and how hexagons tesselate. And, even more to the point, how the human brain (and, face

Re: Tessellated hexagonal grid?

2018-06-27 Thread David V Glasgow via use-livecode
Thanks for all the responses regarding hexes. I had already worked through the ‘redblobgames’ resources, and it was the prospect of trying to implement a hex system in Livecode which was the gotcha. The frustrating thing is that the polygon object displays a nice scaleable hex - and yet it

Re: Tessellated hexagonal grid?

2018-06-27 Thread hh via use-livecode
Here a rather complete guide to the "theory" with a link to implementation guides for several programming languages, especially, close to LC, JavaScript. https://www.redblobgames.com/grids/hexagons/ ___ use-livecode mailing list

Re: Tessellated hexagonal grid?

2018-06-25 Thread Rick Harrison via use-livecode
Hi David, The old “Traveller” space game used to use hexes a lot. Now that computers are so powerful you can do almost anything. Here’s an example using hexes. Try zooming in and out. Play around with the eye candy settings etc. It’s quite impressive!

Re: Tessellated hexagonal grid?

2018-06-25 Thread Richmond via use-livecode
I have fooled around with hexagons as well, and they have to be, either; 1. Hexagonal SVG widgets, or 2, Hexagons embedded in transparent squares as PGN images - with the inevitable consequence that if you start using INTERSECT you must be very careful to set a transparency "trap" a bit