Re: Equilateral Triangles

2015-06-19 Thread Mark Wieder
Richard Gaskin writes: > > Mike Bonner wrote: > > > I have a feature request.. Add the points property to regular > > polygons. They don't need to be settable, but then you can > > easily find the centroid of say.. a triangle > > Apparently Mark Wieder was using Jacque's time machine last y

Re: Equilateral Triangles

2015-06-18 Thread Mike Bonner
Nice! Thx On Thu, Jun 18, 2015 at 8:28 AM, Richard Gaskin wrote: > Mike Bonner wrote: > > > I have a feature request.. Add the points property to regular > > polygons. They don't need to be settable, but then you can > > easily find the centroid of say.. a triangle > > Apparently Mark Wieder wa

Re: Equilateral Triangles

2015-06-18 Thread Richard Gaskin
Mike Bonner wrote: > I have a feature request.. Add the points property to regular > polygons. They don't need to be settable, but then you can > easily find the centroid of say.. a triangle Apparently Mark Wieder was using Jacque's time machine last year, read your request this morning, and ad

Re: Equilateral Triangles

2015-06-18 Thread BNig
ion.278305.n4.nabble.com/Equilateral-Triangles-tp4693127p4693186.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Equilateral Triangles

2015-06-18 Thread Mike Bonner
I have a feature request.. Add the points property to regular polygons. They don't need to be settable, but then you can easily find the centroid of say.. a triangle x1 + x2 + x3 / 3 = the x centroid of the triangle. y1 + y2 + y3 / 3 = the y centroid of the triangle. ( you could of course use ot

Re: Equilateral Triangles

2015-06-18 Thread Kay C Lan
What I should have said: If you already have the triangle images, and they have no margin, so a 200 pixel triangle should be a rectangular image 174 pixel tall and 200 pixels wide, then adding a 7.5% margin to the left AND right of the image (15 % total) and a 32% margin to the bottom, should resu

Re: Equilateral Triangles

2015-06-18 Thread Kay C Lan
As it happens I've just been doing a lot of trig plotting in LC recently. The basic answer to this problem is that the sides of the square need to be 115% the sides of your triangle, with the base of your triangle horizontal and parallel to the base of your square and the pinnacle of your triangle

Re: Equilateral Triangles

2015-06-16 Thread BNig
-revolution.278305.n4.nabble.com/Equilateral-Triangles-tp4693127p4693145.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

RE: Equilateral Triangles

2015-06-16 Thread Ralph DiMola
8-796-9332 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Richmond Sent: Tuesday, June 16, 2015 3:11 PM To: How to use LiveCode Subject: Re: Equilateral Triangles On 16/06/15 19:12, Randy Hengst wrote: > What’s your goal? Why not m

Re: Equilateral Triangles

2015-06-16 Thread Richmond
On 16/06/15 19:12, Randy Hengst wrote: What’s your goal? Why not move the spots? be well, randy Randy Hengst www.classroomFocusedSoftware.com Cripes . . . spoilt for choice as so many people have come up with great ideas. I have a set of images constituting a complete Triomino set : htt

Re: Equilateral Triangles

2015-06-16 Thread Randy Hengst
What’s your goal? Why not move the spots? be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Jun 16, 2015, at 2:26 AM, Richmond wrote: > > On 16/06/15 04:21, Randy Hengst wrote: >> would this help at all? >> >> create a regular polygon with 3 sides… then in the script of that

Re: Equilateral Triangles

2015-06-16 Thread Mike Bonner
Find the center of the triangle. (you can draw grc line overlays to help with this) Make a grc square, and set its loc (center) matching the point you found for the center of the triangle. If it cuts off the top of the triangle, make the square bigger and recenter. Do this until the point of the

Re: Equilateral Triangles

2015-06-16 Thread Richmond
On 16/06/15 04:21, Randy Hengst wrote: would this help at all? create a regular polygon with 3 sides… then in the script of that graphic: on mouseDown repeat while the mouse is down local tStartLoc put the loc of target into tStartLoc set the angle of target to (the ang

Re: Equilateral Triangles

2015-06-16 Thread Richmond
On 16/06/15 02:36, Geoff Canyon wrote: On Mon, Jun 15, 2015 at 6:20 PM, Colin Holgate wrote: He mentioned that his images are square. That is, the triangle is perhaps aligned with the top of the square. So, the center to the triangle is not at the center of the square. If the triangle is off

Re: Equilateral Triangles

2015-06-16 Thread Richmond
On 16/06/15 02:17, Geoff Canyon wrote: Wait -- why are you rotating by 120? That's 1/3 of a revolution, i.e. the triangle should look identical to an unrotated one. Are they specially colored or something? Here's one of them: https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a

Re: Equilateral Triangles

2015-06-15 Thread Randy Hengst
would this help at all? create a regular polygon with 3 sides… then in the script of that graphic: on mouseDown repeat while the mouse is down local tStartLoc put the loc of target into tStartLoc set the angle of target to (the angle of target + 15) set the loc of targe

Re: Equilateral Triangles

2015-06-15 Thread Geoff Canyon
On Mon, Jun 15, 2015 at 6:20 PM, Colin Holgate wrote: > He mentioned that his images are square. That is, the triangle is perhaps > aligned with the top of the square. So, the center to the triangle is not > at the center of the square. If the triangle is offset on purpose, and the intent is to

Re: Equilateral Triangles

2015-06-15 Thread Colin Holgate
He mentioned that his images are square. That is, the triangle is perhaps aligned with the top of the square. So, the center to the triangle is not at the center of the square. > On Jun 15, 2015, at 7:17 PM, Geoff Canyon wrote: > > Wait -- why are you rotating by 120? That's 1/3 of a revoluti

Re: Equilateral Triangles

2015-06-15 Thread Geoff Canyon
Wait -- why are you rotating by 120? That's 1/3 of a revolution, i.e. the triangle should look identical to an unrotated one. Are they specially colored or something? In any case, I'd either: 1. Create rotated images externally, and sub them in rather than actually rotate. 2. Do the rotation whil

Re: Equilateral Triangles

2015-06-15 Thread Bob Sneidar
This may help: http://www.instructables.com/id/How-to-make-a-paper-triangle-from-a-square/ Bob S On Jun 15, 2015, at 13:17 , Richmond mailto:richmondmathew...@gmail.com>> wrote: there is NO way one can centre an equilateral triangle in a square. __

Equilateral Triangles

2015-06-15 Thread Richmond
I am importing equilateral triangle images, which are, obviously, contained in square PNG image files. When I either ROTATE or SET THE ANGLE of these images by 120 degrees they rotate, but the also jump around the screen because there is NO way one can centre an equilateral triangle in a squar