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 target to tStartLoc
   end repeat
end mouseDown


be well,
randy

Randy Hengst
www.classroomFocusedSoftware.com


> On Jun 15, 2015, at 3:17 PM, Richmond  wrote:
> 
> 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 square.
> 
> Of course . . . if there was a way to readily import Vector images into 
> LiveCode . . .
> 
> And before you say it: converting the PNG images using 'convert' in Linux to 
> make EPS files yields files, that while being
> openable in InkScape cannot be imported by Alejandro El Tejada's stacks.
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 *not* rotate
about its center, then I'd go back to either of my two suggestions.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 revolution, i.e. the
> triangle should look identical to an unrotated one. Are they specially
> colored or something?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 while developing, figure out the pixel offset to make it
right, and then do both at runtime with the screen locked.

gc
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 square.

Of course . . . if there was a way to readily import Vector images into 
LiveCode . . .


And before you say it: converting the PNG images using 'convert' in 
Linux to make EPS files yields files, that while being

openable in InkScape cannot be imported by Alejandro El Tejada's stacks.

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Bored Children should be . . .

2015-06-15 Thread Richmond

Well, either sent to do a Tom Sawyer with a pot of paint, muck out
the byre, or, failing that they could do worse than mucking around
with LiveCode over her:

https://www.facebook.com/RMLCclasses

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: open stack finds stack in wrong path!?

2015-06-15 Thread Devin Asay
Correction.

On Jun 15, 2015, at 11:56 AM, Devin Asay  wrote:

> Tiemo,
> 
> On OS X looking for a stackfile relative to the location of the .app bundle 
> will look inside the .app bundle, as you have seen.

This should have said “On OS X looking for a stackfile relative to the location 
of the splash stack/app, will look inside the .app bundle…



Devin Asay
Office of Digital Humanities
Brigham Young University


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: open stack finds stack in wrong path!?

2015-06-15 Thread Devin Asay

On Jun 15, 2015, at 10:37 AM, Tiemo Hollmann TB  wrote:

> Hello,
> 
> LC 6.5.2, OS X 10.9. I have a splash stack and a main stack. The mainStack
> is located at the regular place on the same level as the executable within
> the app bundle.
> 
> Because this software runs directly from CD and there also is a windows
> version on the CD, there is a copy of the mainStack on the same level, as
> the app bundle in the root of the CD, which is used from the windows exe.
> 
> On OS X I open the main stack with: open stack (item 1 to -2 of the
> effective filename of this stack & slash & "mainStack.rev"). The splash
> stack opens correctly the mainStack in its bundle, only as far there is no
> copy of the mainStack on bundle level. But as soon there is a copy of the
> mainStack in the bundle directory (for windows use), the OS X program
> ignores my given path within the bundle and opens the mainStack from the
> bundle level, which I don't want to be used on OS X.
> 
> Is there any secret hierarchy for looking for stackfiles and ignoring given
> paths? Or am I overseeing something obviously?

Tiemo,

On OS X looking for a stackfile relative to the location of the .app bundle 
will look inside the .app bundle, as you have seen. But if you don’t try to 
find a stackfile relative to the .app, it will look first in the folder that 
contains the .app bundle. I think you can work around your problem by including 
this in the preOpenStack or openStack handler of the splash stack/app:

 if the environment is “development” then
   go stack item 1 to -2 of the effective filename of this stack & slash & 
“mainStack.rev"
 else
   go stack “mainStack.rev”
 end if

Why? Because once the stack is made into a standalone the defaultFolder becomes 
the folder containing the .app bundle. It should therefore work in both the Mac 
and Windows environments.

I hope I understood your problem correctly.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


open stack finds stack in wrong path!?

2015-06-15 Thread Tiemo Hollmann TB
Hello,

LC 6.5.2, OS X 10.9. I have a splash stack and a main stack. The mainStack
is located at the regular place on the same level as the executable within
the app bundle.

Because this software runs directly from CD and there also is a windows
version on the CD, there is a copy of the mainStack on the same level, as
the app bundle in the root of the CD, which is used from the windows exe.

On OS X I open the main stack with: open stack (item 1 to -2 of the
effective filename of this stack & slash & "mainStack.rev"). The splash
stack opens correctly the mainStack in its bundle, only as far there is no
copy of the mainStack on bundle level. But as soon there is a copy of the
mainStack in the bundle directory (for windows use), the OS X program
ignores my given path within the bundle and opens the mainStack from the
bundle level, which I don't want to be used on OS X.

Is there any secret hierarchy for looking for stackfiles and ignoring given
paths? Or am I overseeing something obviously?

Thanks for any hint

Tiemo

 

 

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: I wish ...

2015-06-15 Thread Paul Dupuis
On 6/15/2015 8:23 AM, Mark Waddingham wrote:
> On 2015-06-11 18:00, Paul Dupuis wrote:
>> ... that LiveCode had a way you could set any and all the coordinates
>> (loc, rect, top, bottom, left, right, topLeft, topRight, bottomLeft,
>> bottomRight) of an object inside a group RELATIVE to the group (AND
>> independent of the group's scroll) - like the relativePoints property of
>> a polygon graphic!
>>
>> That would make arranging complex layouts of objects in a scrolling
>> group SO MUCH easier!
>
> Filed as enhancement:
>
> http://quality.runrev.com/show_bug.cgi?id=15504
>
> Mark.
>

Wow Mark! Thanks! You just made my day!

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Release 6.7.6 RC 1 / 7.0.6 RC 1

2015-06-15 Thread Sebastien Nouat

Dear List Members,

We are pleased to announce the release of LiveCode 6.7.6 RC 1 and 7.0.6 
RC 1. This release is a maintenance release which contains bug fixes for 
both versions. The list of bugs fixed can be found in the Release Notes.


* /dontuseqt/ is now a Player property as well *
It is now possible to have a player running without QuickTime at the 
same time that another player, using QuickTime, is playing. You can have 
a look at the updated documentation for dontuseqt, and in the Release 
Note 'Engine changes' section, for more information.


*Getting the Release*
To get the release please select "check for updates" from the "help" 
menu in the product or download the installer directly at: 
http://downloads.livecode.com


*6.7.6 RC 2 / 7.0.6 RC 2  *
The following RC release is planned to happen in a short time, and will 
fix regressions introduced by the bug fixes added in the RC 1 release.


Warm regards,

The LiveCode Team
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: I wish ...

2015-06-15 Thread Mark Waddingham

On 2015-06-11 18:00, Paul Dupuis wrote:

... that LiveCode had a way you could set any and all the coordinates
(loc, rect, top, bottom, left, right, topLeft, topRight, bottomLeft,
bottomRight) of an object inside a group RELATIVE to the group (AND
independent of the group's scroll) - like the relativePoints property 
of

a polygon graphic!

That would make arranging complex layouts of objects in a scrolling
group SO MUCH easier!


Filed as enhancement:

http://quality.runrev.com/show_bug.cgi?id=15504

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode