Suggestion: Non-Appbuilding Community Edition

2021-09-02 Thread Michael Kristensen via use-livecode
Hi there

I suggest that there could be a Non-Appbuilding Community Edition

That would be for personal use, and to learn coding.

Michael

___
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


Setting Creation Date of file to a past date?

2021-03-14 Thread Michael Kristensen via use-livecode
Hi there

I want to create/export some images from Livecode to fit into a slideshow that 
is sorted by creation date.

It means that the files I export shall have a creation date of the past. So 
that when they are put into the folder of the slideshow, the images are placed 
automatically at the desired places.

How would you go about to set the creation date of a file to a date in the past 
with Livecode (maybe with the help of shell or applescript)

Thanks
Michael
___
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


Little tool for popUp palette graphics

2021-03-12 Thread Michael Kristensen via use-livecode
Hi there

I have placed at little tool for you here:
https://forums.livecode.com/viewtopic.php?f=9&t=13399&p=203217#p203217 


Hope it is useful.
Michael
___
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: Files() can't list rtfd files (mac)

2021-02-04 Thread Michael Kristensen via use-livecode
Danke schön Klaus

Michael
___
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


Files() can't list rtfd files (mac)

2021-02-03 Thread Michael Kristensen via use-livecode
Hi there

The files function can’t list .rtfd files.

They are a special rtf format on Mac.

Whats up?

Mic
___
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: [ANN] Release 9.6.2 RC-2

2021-01-13 Thread Michael Kristensen via use-livecode
Richard Gaskin wrote:

> We've been here before...
> 
> 68k -> PPC
> Classic -> OS X
> PPC -> Intel
> 32-bit -> 64-bit


More form memory-land:

Yesterday I downloaded SuperCard 4.8.1 Trail wich still is maintained.

I was able to convert some 30 years old SC stacks so they could run again (at 
least for 30 days).

It look exactly like when I left it for Revolution and Livecode.

Richard, you might be the first person I ever emailed to, back then when we had 
telephone modems (ky)

Michael
___
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: Moving object out of a group

2020-06-16 Thread Michael Kristensen via use-livecode
Can this help

https://forums.livecode.com/viewtopic.php?f=7&t=32494&p=178858#p178858

Mic

___
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


Demo of bending a polygon

2020-03-02 Thread Michael Kristensen via use-livecode
Hi there

I have put a demo of bending a polygon here

https://forums.livecode.com/viewtopic.php?f=8&t=33750 


Michael
___
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


Demo of calculating tangents to circles

2020-02-14 Thread Michael Kristensen via use-livecode
Hi there

I have put a demo of calculating tangents to circles here

https://forums.livecode.com/viewtopic.php?f=8&t=33666 


Michael

___
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: Thumbnail on txt file? (Mac users)

2020-01-28 Thread Michael Kristensen via use-livecode
Hi again

Thanks for the input on this topic to all!

I have put a little file here to demonstrate how this could be done.

If you have ideas for polish then I look forward to that.

https://forums.livecode.com/viewtopic.php?f=8&t=33586 


BTW
Here is some key codes for applescript
https://macbiblioblog.blogspot.com/2014/12/key-codes-for-function-and-special-keys.html

Michael
___
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: Thumbnail on txt file?

2020-01-18 Thread Michael Kristensen via use-livecode
Thanks for the answer, Richmond

I just want to describe a little more what I want

I Livecode I want to take a snapshot of part of the screen, and that snapshot I 
want to use as thumbnail for the txt file.

In that way I can see what the txt file represent.

Does that change anything?

Mic

> Subject: Re: Thumbnail on txt file?
> Message-ID: <492a6ff7-7a25-5a4d-bc05-fd79fb1d9...@gmail.com 
> <mailto:492a6ff7-7a25-5a4d-bc05-fd79fb1d9...@gmail.com>>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Surely that is something that is done by the operating system or its 
> desktop/windowing manager and not by LiveCode.
> 
> On 18.01.20 11:26, Michael Kristensen via use-livecode wrote:
>> Hi there
>> 
>> Im using a simple txt file for storing data.
>> 
>> I want to stick a preview thumbnail onto it when I save it.
>> 
>> Can I do that?
>> 
>> Mac High Sierra
>> 
>> 
>> Thanks
>> 
>>  Michael
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com <mailto: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 
>> <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


Thumbnail on txt file?

2020-01-18 Thread Michael Kristensen via use-livecode
Hi there

Im using a simple txt file for storing data.

I want to stick a preview thumbnail onto it when I save it.

Can I do that?

Mac High Sierra


Thanks

 Michael

___
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


Bug: brush and erase tool do not work in a standalone

2019-09-06 Thread Michael Kristensen via use-livecode
Hi there

The brush and erase tool do not work in a standalone

on Mac
Livecode 9 and 9.5

Thanks
Michael

___
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


9.5 layerClipRect

2019-05-21 Thread Michael Kristensen via use-livecode
Hi there

layerClipRect is a nice addition to LiveCode.

Made a little experiment with the code from the Dictionary

// Hide 10 pixels from the border of image "myImage"
local tRect
put the rect of image "myImage" into tRect
add 10 to item 1 of tRect
add 10 to item 2 of tRect
subtract 10 from item 3 of tRect
subtract 10 from item 4 of tRect
set the layerClipRect of image "myImage" to tRect


Had an image and a button with the code.


It always toke two clicks on the button to have an effect on the image

Did also put a “lock screen” in there to force an update.

Same result: Two clicks necessary

Michael
___
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

Drag and Drop between groups

2019-04-20 Thread Michael Kristensen via use-livecode
Hi there

I have placed an example of DaD objects between groups here:

https://forums.livecode.com/viewtopic.php?f=7&t=32494 


If the experts would like to take a look at it it would be nice (to improve on 
it)

Michael

___
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


Best strategy for dragging objects in an out of groups?

2019-04-11 Thread Michael Kristensen via use-livecode
Hi there

What would be the best strategy for dragging objects in and out of groups?

If anyone has a stack that demonstrate that it would be nice

else

just explain in plain words what you think is the best strategy.


Thanks
Michael

PS While I write this Im thinking that maybe RELAYER in a mouseMove handler 
could be used.
___
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: MouseMove less responsive in 9.0.4

2019-04-04 Thread Michael Kristensen via use-livecode



Thanks Monte and Mark

RELAYER! Wow, I did not know about it.

Everything works perfectly now.

Life is wonderful and spring is here.  

Michael

___
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: MouseMove less responsive in 9.0.4

2019-04-03 Thread Michael Kristensen via use-livecode


Thank you Paul for looking into it.

There is a clear difference here and I have an 2017 iMac which is pretty fast.

Yet, I might have jumped to conclusion to fast since I also have this 
mouseEnter handler (before a mouseDown and mouseMove handler):

on mouseEnter
   if the tool is "Browse tool" then
  lock screen
  start editing grp “Board”
  set the layer of me to top
  stop editing
   end if
end mouseEnter

… so a delay might occur here.


What I observe
9.0.3 
The mousepointer and the object is rock solid together.

9.0.4
The mousepointer is way outside the object before the move catches on.

Thanks again
Michael
___
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

MouseMove less responsive in 9.0.4

2019-04-02 Thread Michael Kristensen via use-livecode
Hi there

There is a definite degradation of the moseMove responsiveness here


Could you please investigate to determine if it also is true for you

Thanks

Michael

___
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: [ANN] Release 9.0.4 RC-1

2019-03-29 Thread Michael Kristensen via use-livecode
Hi there

It is my impression that mouseMove is less responsive than in 9.0.3

MouseMove was one of the things there was worked on in 9.0.4 RC-1

Michael

___
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


The Old Project Browser?

2019-03-13 Thread Michael Kristensen via use-livecode
Hi there

I know the old project browser is still there in LC 9.

I just can’t remember how to get to it.

Can you help out?

Thanks
Michael
___
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: Polygon Bug

2019-03-02 Thread Michael Kristensen via use-livecode
Hi hh

Thanks for the reply
If you are a reg member of the bug site then please go a head and report it, 
because Im not

Michael


> 
> Yes. I have it too here, in LC 9.0.2 and LC 8.1.10.
> Did you already report the bug?
> 
> Currently we could use as a workaround to disable the graphic,
> from the message box, for simple scenarios.
> And set the foreColor of it to have a full color.
> 
>> Michael K. wrote:
>> Non-Opaque polygons block the mouse click, when their
>> lineSize is greater than 9.  (This figure varies)
> 


___
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


Bug with polygons

2019-03-01 Thread Michael Kristensen via use-livecode



Hi there

Mac, Livecode 9.02


Non-Opaque polygons block the mouse click, when their lineSize is greater than 
9. 
(This figure varies)

You can test the bug in this little stack.
https://www.dropbox.com/s/7rsa9qo7fi1295e/Polygon%20Bug.zip?dl=0



Michael
___
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


Script works but still cast an error?

2018-11-01 Thread Michael Kristensen via use-livecode
Hi there

I have a scrolling group called “PinBoard” that holds subgroups and fields.

If I place this simple script in the subgroups:

on mouseEnter
  lock screen
  start editing grp PinBoard
set the layer of me to top
  stop editing
end mouseEnter

…it works very well.


If I place the same script in the fields, it also work as intended but it casts 
an error.

The offending line is:
start editing grp PinBoard  (can’t find background)

If I check the generel menu command “Suppress errors” it just works as I want.

But I can’t figure out why it works in the subgroups but in the fields it casts 
an error.

Thanks

Michael


BTW 
If I place:
“lock error dialogs” just under on mouseEnter, it has no effect. It still cast 
the same error.
___
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

Thanks to Hermann Hoch...

2018-10-03 Thread Michael Kristensen via use-livecode
…for all the wonderful and wellcraftet stacks you share so generously with us!

Michael
___
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: Need a little help with image resizing

2018-08-12 Thread Michael Kristensen via use-livecode
Thanks Richard and Jacqueline

That was easy.

Did not know about the crop command.

Michael

___
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


Need a little help with image resizing

2018-08-11 Thread Michael Kristensen via use-livecode
Hi there

I have an image B1 with a scribble made with brush tool in it.
I want to double the width of the image without distorting the scribble. 

The plan is to: 
1. select the image with select tool
2. cut the image out
3. resize the image
4. paste the image back in, in the original proportions

As script:

on mouseUp
   lock screen
   
   put (item 1 to 2 of rect of img B1) into K1
   put (item 3 to 4 of rect of img B1) into K2
   
   choose select tool
 
   drag from K1 to K2
  
   cut
 
   set width of img B1 to 2*(width of img B1)
  
   drag from K1 to K2
  
   paste
   
   choose browse tool
end mouseUp


But the script does not work. The proportions of the image after paste is as if 
the image was stretched.


NOTE 
This works if I cut from one image and paste into another.

It also works if I do it manually on image B1.


Thanks 

Mic
___
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: 9.0.0 RC-1 Hard crash still persists + New problem

2018-03-16 Thread Michael Kristensen via use-livecode
Hi again
Thanks for the answers!



Deleted the prefs files.

Crash persist.

As a side note Command-E opens the script fine.



Problem with Extension Manager:

This is a picture of my Extension Manager
https://www.dropbox.com/s/vjtsy4agfauwol7/Sk%C3%A6rmbillede%202018-03-16%20kl.%2017.05.41.png?dl=0
 



How do I get the extensions back?



Michael
___
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: 9.0.0 RC-1 Hard crash still persists + New problem

2018-03-16 Thread Michael Kristensen via use-livecode
Hi Lagi

I disabled all the extensions, one by one, in the Extensions Manager.

I had the same result as before …a hard crash.


But apparently the Extensions Manager depends on the extensions themself, 
because now the Extension Manager is completely empty and I cant acces them to 
load them at startUp.

I did re-install LC 9 rc1 again but the Extension Manager remains empty. The 
Project Browser is also empty.

How can I reactivate the extensions?

Thanks 
Mic
___
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

9.0.0 RC-1 Hard crash still persists

2018-03-15 Thread Michael Kristensen via use-livecode
Hi there

(Mac 10.11.6)

I have grouped items in a group.

I press Command R to edit the big group.

Then I hover mouse over one of the subgroups and Option-Command-click to acces 
the script.

Then Hard crash

Only Force Quit Livecode will let me out


Mic



___
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


FOR YOU: OSX-style push reorder of objects

2017-08-08 Thread Michael Kristensen via use-livecode
Hi there
This is a stack that reorder objects like in the osx app bar.
You drag an object and it pushes the other objects away.

This might also be interesting for Windows users. I dont know how they do it.

Please upload if you have improvements.

Enjoy
Michael Kristensen


Here it is:
http://forums.livecode.com/viewtopic.php?f=8&t=29593
___
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: Determining left or right movement in a mouseMove handler

2017-06-27 Thread Michael Kristensen via use-livecode
Thank you Mike Bonner, Mark Schonewille and Alejandre Tejada.

I did work in the direction of Mike and Marks script but I forgot to use Local. 
That solved it.

Alejandro I did not dig deep into your stack as the solution was ready at hand 
from Mike and Mark.

But you can always us a bezier script. Thanks


Im scripting a way to shuffle objects the visual way. Like when you move apps 
in the Mac dock. 
Has that been done before?


Michael


___
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


Determining left or right movement in a mouseMove handler

2017-06-27 Thread Michael Kristensen via use-livecode
Hi there

How can I determine if the mouse is moving left or right (or up or down) on the 
screen in a mouseMove handler?

Not just from the outset (that is easy) but at any moment, like when a user 
changes his mind and move the opposite way.

Something like put x into oldX will not work.

Thanks
Michael
___
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


Accesing Mac file icons

2017-05-24 Thread Michael Kristensen via use-livecode
Hi there

There is some pretty big icons that show the content of a mac file. Fx graphics 
files show a picture of the actual graphic in the file.

Is it possible to acces that icon or picture from livecode?

Thanks
Michael
___
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: Pointlist to Bezier?

2015-12-08 Thread Michael Kristensen
A video of live vector drawing can be seen here.

(there is no lag at all)

https://www.youtube.com/watch?v=eP1CVHiRvXk



Herman  - approximating closely would be great!

Michael

___
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: Pointlist to Bezier?

2015-12-07 Thread Michael Kristensen
Thanks to Scott, Hermann and Alejandro for your extensive replies.

Herman your smoothing app is cool and working very well!


I might not have been precise enough….what I meant was:

To a given curve (or pointlist) which bezier will fit it.

Kind of reverse-engeneering beziers

Thanks
Michael
___
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


Pointlist to Bezier?

2015-12-06 Thread Michael Kristensen
Pointlist to Bezier

Hi there

I wonder if any have code to take a point-list and turn it into a smooth-lined 
bezier.

There are explanations around the net for C-code but it is very hard to 
understand.

(one here said to be good but misses the graphics:)
http://www.benknowscode.com/2012/09/path-interpolation-using-cubic-bezier_9742.html

What could this code be used for.

— Tracing an image

— Smoothing the lines drawn by a user

plus a lot more Im sure

Thanks 
Michael
___
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

Screen updating i version 7

2014-10-06 Thread Michael Kristensen
Hi there

Im finding that the screen updating in version 7 is WAY slower than in v6.6.
So slow that it is not usable.

Multiple things that update instantaneous in 6.6 becomes a visible one-by-one 
updating in v7

I even read that 7 should use multiple threads...

What am I missing?

Are you seeing the same?

Thanks
Michael
___
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


Tracing Stack (was: the points of graphic)

2014-01-20 Thread Michael Kristensen
Hi there

I have placed a Tracing Stack here:

http://forums.runrev.com/viewtopic.php?f=9&t=13399&p=64351#p64351

Michael

___
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: the points of graphic

2014-01-19 Thread Michael Kristensen
hi Jim

Where can one use the code?

I put it in a button in alejandros stack and get errors.

I have never seen the To Poly syntax before

I ditto the challenge given to you before.

Michael





> This script will provide the individual points.
> 
> on mouseUp
>   put the width of this card/2 into x0
>   put the height of this card/2  into y0
>   put 6 into n
>   put 50 into L
>   put 360/n into tAngle
>   put x0,y0 & cr after tPoints
>   set the points of grc "polygon" to tPoints
>   repeat with i = 1 to n+1 -- plus 1 to close
>  --Calculate each line segment individually
>  --dx and dy and the x and y projections of the line segment
>  repeat with j = 1 to i
> add  L * cosine(j*tAngle) to dx
> subtractL * sine(j*tAngle) from dy
>  end repeat
>  put x0 + dx , y0 + dy into theCoord[i] --if you want the coordinates of 
> each vertex
>  put (x0 + dx), ( y0 + dy) & cr after tPoints
>  set the points of grc "polygon" to tPoints--if you want to see the 
> polygon evolve
>  put 0 into dx
>  put 0 into dy
>   end repeat
> end mouseUp 
> 
> Given the individual points (theCoord[i]), it would be possible to do things 
> line draw all diagonals, connect each vertex with all the others. When n is 
> large, it is a pretty picture.
> 
> But, of course, there is always the much simpler Turtle Graphics.
> 
> To poly n, L
> repeat n 
>  forward L 
>  left 360/n
>  put xycor() into theVertex[i]
> end repeat
> end poly

___
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: RELEASE: LiveCode 6.5.0 DP1 (Benjamin Beaumont)

2013-09-12 Thread Michael Kristensen
Will the new Resolution Independence give us zoom facilities?

Mic

___
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: Strange behavior of files()

2013-08-28 Thread Michael Kristensen

Den 28/08/2013 kl. 12.00 skrev use-livecode-requ...@lists.runrev.com:


Richard, you were right in both cases.

A sort put it straight and the number of files was correct.

So no bug, but can cause hair-pulling in some cases.

Thanks for your swift reply.


It vas while I used Chipp Walters altThumbViewer control - Beta 0.9 I noticed 
the anormality.

Michael




> Michael Kristensen wrote:
> 
>> I have a folder with 1347 jpg files
>> 
>> they are sequently named
>> 
>>  0001.JPG
>>  0002.JPG
>>  0003.JPG
>> ...
>>  1345.JPG
>>  1346.JPG
>>  1347.JPG
>> 
>> Strangely the files() function return a list omitting the first two and the 
>> last two.
>> 
>> Thus the list start with  0003.JPG and ends with  1345.JPG.
>> 
>> Anyone seen this behavior?
> 
> I've seen what *looks* like that behavior, until I double-checked and 
> discovered that file name listings returned from "the files" are not 
> always sorted.
> 
> Instead, they return the values as known by the OS, which for some file 
> systems often use inode order which may not reflect name sort order. 
> Directories with large numbers of files may be especially prone to this, 
> since the file lists are likely spread out across multiple inodes.
> 
> Try running the resulting list through the sort command to see if 
> perhaps the files you're looking for are actually there but had not been 
> where you'd expected them.
> 
> And an extra check might be to see if the number of lines in that list 
> matches what you see in the OS file manager.
> 
> If you find they're not there please post back so we can find the recipe 
> to pin down what at that point would be a bug.
> 
> --
>  Richard Gaskin

___
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


Strange behavior of files()

2013-08-27 Thread Michael Kristensen
Hi there

I have a folder with 1347 jpg files

they are sequently named

 0001.JPG
 0002.JPG
 0003.JPG
...
 1345.JPG
 1346.JPG
 1347.JPG

Strangely the files() function return a list omitting the first two and the 
last two.

Thus the list start with  0003.JPG and ends with  1345.JPG.

Anyone seen this behavior?

Mic
___
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: scrolling stack I made

2013-05-23 Thread Michael Kristensen
Runrev has promised subpixel placement in a future update

Mic

> 
> Here it is adapted to use the array again. It's too bad (for this) that the
> loc can't use a fractional value and just work.

___
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


Limitations of the Open-Source version?

2013-04-05 Thread Michael Kristensen
Hi there

I have not seen it explanied/discussed what limitations there is put on the O-S 
version.

Can you point me to it?

Thanks

Mic



___
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: Sharing a little stack

2012-11-20 Thread Michael Kristensen
Hi David

Line = Poly1

Yellow Rect = Poly2

Field = Thicknes

This is the script inside one of the small squares.
Adjust the script for the other one accordingly.


local gDragging,loc2,T

on mouseDown
   put true into gDragging
   put line 2 of points of grc Poly1 into loc2
   put fld Thicknes into T
end mouseDown

on mouseUp
   put false into gDragging
end mouseUp

on mouseRelease
   put false into gDragging
end mouseRelease


on mouseMove x,y
if x,y is within the rect of this cd then 
   if gDragging is true then
  set loc of me to x,y
  set points of grc Poly1 to x,y & return & loc2
  
  --Vinger---
  put points of grc Poly1 into xPoints
  
  put item 1 of line 1 of xPoints into x1
  put item 2 of line 1 of xPoints into y1
  put item 1 of line 2 of xPoints into x2
  put item 2 of line 2 of xPoints into y2
  
  put x2-x1 into dX
  put y2-y1 into dY
  
  put sqrt(dX^2 + dY^2) into Læng
  
  if Læng = 0 then exit mouseMove
  
  put T/Læng into Skala
  
  
  put round(-dX*Skala) into dYny
  put round(dY*Skala) into dXny
  
  put round(dX*Skala) into dYny2
  put round(-dY*Skala) into dXny2
  
  put x1+dXny,y1+dYny & return into xBox
  put x2+dXny,y2+dYny & return after xBox
  put x2+dXny2,y2+dYny2 & return after xBox
  put x1+dXny2,y1+dYny2 & return after xBox
  put x1+dXny,y1+dYny after xBox
  
  set points of grc Poly2 to xBox
  -
   end if
end if  
end mouseMove


Michael
___
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


Sharing a little stack

2012-11-19 Thread Michael Kristensen
Hi there

This little stack demonstrate resizing a rectangle in any direction

Its also an exersice in calculating pendicular lines

http://forums.runrev.com/viewtopic.php?f=9&t=13399

Michael
___
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: Scripting shades of colors?

2012-10-31 Thread Michael Kristensen
Hi again

Also thanks to Dan Friedman for your script

Rolf Kocherhans pointed me to this stack by Bernd

http://forums.runrev.com/viewtopic.php?f=10&t=11100&p=51903&hilit=darken+lighten#p51903

Thanks to both

And now a special thanks goes to my mother who always believed in me and stood 
up for me :-)

Michael



> 
> Here is a function that I use to lighten a color.  You could modify this to 
> get a darker color as well.  Hope it helps.
> 
> function lightenColor origColor
>  try
>repeat with i = 1 to 3
>  add 50 to item i of origColor
>  if item i of origColor > 255 then put 255 into item i of origColor
>  if item i of origColor < 0 then put 0 into item i of origColor
>end repeat
>return origColor
>  catch tSomeErr
>return origColor
>  end try
> end lightenColor
> 
> -Dan
> 
> 
>> Hi there
>> 
>> Lets say I have a color a,b,c
>> 
>> Now I want the same color but fx 10% darker and 10 % lighter.
>> 
>> (As if you in the colorwheel palette dragged the scrollbar-thumb a little 
>> down and a little up)
>> 
>> How could one script this?
>> 
>> Thanks
>> Michael
> 


___
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: Scripting shades of colors?

2012-10-30 Thread Michael Kristensen
Hi Jan

This was spot on!

Thanks for your reply and stack

Michael


> Hi Michael,
> 
> 
> You might be interested in Quartam Color Library for LiveCode - a free / open 
> source software project available under the commercial-friendly LGPL license.
> 
> It has built-in functions for producing lighter and darker colors based on an 
> RGB triplet.
> For more information and download, just visit 
> 
> 
> HTH,
> 
> Jan Schenkel.

___
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


Scripting shades of colors?

2012-10-29 Thread Michael Kristensen
Hi there

Lets say I have a color a,b,c

Now I want the same color but fx 10% darker and 10 % lighter.

(As if you in the colorwheel palette dragged the scrollbar-thumb a little down 
and a little up)

How could one script this?

Thanks
Michael
___
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


Bug with acceleratedRendering

2012-08-21 Thread Michael Kristensen
Hi there

If I use acceleratedRendering, the blendmode "transparent" set on images is not 
working. 
That is, white areas are not transparent, but opaque/white.

OSX 10.6.8  Livecode 5.5.1

Thanks
Michael
___
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: This handler does not work in 5.5.1

2012-08-14 Thread Michael Kristensen
Thanks for all replies and to Richard for pointing at a solution!

Michael


Den 14/08/2012 kl. 01.44 skrev use-livecode-requ...@lists.runrev.com:

>> This handler does not work in 5.5.1
>> 
>> on preOpenStack
>>   choose browse tool
>>   close stack revtools
>> end preOpenStack
>> 
>> 
>> Any idea?
> 
> The came up a few days ago - Mark Schonewille provided the tip to use a 
> timer for that:
> 

___
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


This handler does not work in 5.5.1

2012-08-13 Thread Michael Kristensen
Hi there

This handler does not work in 5.5.1

on preOpenStack
   choose browse tool
   close stack revtools
end preOpenStack


Any idea?

Thanks Michael
___
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: TIP: A Collapsable Tool Palette

2011-11-09 Thread Michael Kristensen
Yes Mark

When you quit Rev the Palette will ask you if you want to save.

If yes it will stick for next time.

Michael



> 
> Hi Michael,
> 
> Do these script changes stick between sessions?
> 
> --
> Best regards,
> 
> Mark Schonewille


___
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


TIP: A Collapsable Tool Palette

2011-11-09 Thread Michael Kristensen
Hi there

If you have finished adding objects to your stack it can be nice to have a 
smaller Tool Palette with only the RUN - EDIT button visible.

You can have that in this way:

Go to the preferences of Revolution/Livecode and turn this on:

General: Command-Option or Control-Alt edits script.

and 

General: In Revolution UI windows.


Now hold Command-Option or Control-Alt down over the Tool Palette card.

The script of the Tool Palette card appear.

It has no mouseUp handler, so you can add this:

on mouseUp
   if the mouseV < 5 then
  if the height of this stack is 459 then
 set the height of this stack to 33
  else
 set the height of this stack to 459
  end if
   end if
end mouseUp

Now if you click just under the window bar the window will toggle between full 
and collapsed.


NOTE: The height of the toolpalette may vary according to if the draw/paint 
tool is toggled on. Go check it before. In my case they are on.

In any case the ToolPalette will spring to its full when you choose it from the 
menu.

Michael
___
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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread Michael Kristensen
on mouseUp
   lock screen
   repeat with i = 4 down to 1
  delete grc i
   end repeat
end mouseUp

Michael


Den 04/11/2011 kl. 16.55 skrev use-livecode-requ...@lists.runrev.com:
> 
> 
> this is a cool demonstration of points in Livecode.
> 
> One question - how does one *clear* the window of the bezier drawing?

___
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


Leonardo Bezier. How to bring your own Bezier in

2011-11-04 Thread Michael Kristensen
How to bring your own Bezier drawing in!

As far as I know the drawing app Canvas is the only program that lets you 
export the Bezier Control Points of a Bezier as a textlist.

Mac Trail: http://www.macupdate.com/app/mac/1924/canvas
Not working on OSX 10.7

PC Trail: http://www.acdsee.com/en/products/canvas-12

Open the Canvas Trail ( I have nothing to do with that company)

Use the pentool to draw your Bezier.

Make sure you are using pixel as your Unit

When you have finished your drawing go to:

MENU: Object / Object Path Editor / PopupMenu / Copy

Now you have all the Bezier Control Points in memory


Use this script to parse the data in memory in Livecode

on ClipToBezier
   put the clipBoardData[text] into xxx
   
   replace "," with "." in xxx
   
   set the itemDel to tab
   
   repeat with i = 1 to number of lines of xxx
  put trunc(item 1 of line i of xxx) into item 1 of line i of xxx
  put trunc(item 2 of line i of xxx) into item 2 of line i of xxx
   end repeat

   replace tab with "," in xxx
   
   put xxx
end ClipToBezier


Now you have a pointList that LiveCode can work with.

You can then replace the points in Custom Prop LeoPoints with your own.

Michael
___
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: use-livecode Digest, Vol 98, Issue 4

2011-11-04 Thread Michael Kristensen
Hi Mark

Very nice to see your additions.

One comment on the DPI

If you want a ruler that match your printer you should use 72.
Also if you fx want to calculate a perimeter or area of a square you should use 
72.

At least on a Mac

To have the ruler appear "lifelike" I use 72/2.54 * 1.52 on an iMac 27

I have experimentet in a drawing app and found 152% to be lifelike on the screen
So in my case at 152% I see exactly what comes out of the printer.

Michael


Den 03/11/2011 kl. 18.00 skrev use-livecode-requ...@lists.runrev.com:

> 
> Hi Michael,
> 
> I added to your very cool script a slight bit to make the cm ruler true on 
> any monitor.  Users will have to adjust the three variables at the top to 
> represent their monitors accurately.
> 
> on mouseUp
>  put 1920 into tMonitorWidth
>  put 1200 into tMonitorHeight
>  put 24 into tMonitorDiag
> 
>  put sqrt((tMonitorWidth * tMonitorWidth) + (tMonitorHeight * 
> tMonitorHeight)) into tDiagRes
>  put round(tDiagRes/tMonitorDiag,3) into tDPI
>  put tDPI /2.54 into Q


___
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


Nice Leonardo da Vinci Bezier, just a click away

2011-11-03 Thread Michael Kristensen

Hi there

Here is a nice Leonardo da Vinci Bezier, just a click away

Make a new big wd

Make a new button up in the left corner
Make a Custom Prop of the button called LeoPoints and fill in these points:

640,265
670,256
697,268
690,293
682,325
717,281
716,334
712,386
671,374
668,378
676,388
693,394
698,400
698,400
768,392
791,411
797,411
827,399
851,414
878,399
963,416
977,407
990,396
1059,383
1065,408
1072,432
996,446
986,440
964,427
905,465
851,446
805,462
733,432
723,476
720,496
706,540
708,575
716,591
706,597
708,605
714,643
708,677
709,683
723,718
706,838
695,857
698,877
692,888
687,902
689,976
681,1053
695,1071
709,1089
766,1091
774,1104
782,1116
741,1116
706,1110
687,1108
670,1115
662,1115
651,1105
659,1102
659,1088
657,1053
638,1031
642,997
623,975
634,905
637,896
648,847
642,803
640,748
634,776
629,811
629,844
627,874
616,894
610,910
615,931
624,973
615,993
619,1017
623,1017
621,1052
630,1058
635,1069
634,1077
632,1085
665,1118
646,1119
612,1119
607,1123
597,
590,1100
596,1091
599,1069
588,1047
547,964
571,899
567,885
575,858
580,842
569,824
556,743
564,687
563,663
561,635
572,608
575,600
575,575
582,558
571,528
561,498
556,477
549,432
479,462
434,446
380,465
319,427
297,440
287,446
212,436
218,408
224,383
293,399
306,410
320,419
405,399
432,414
460,394
497,416
503,411
525,392
585,400
585,400
590,394
607,394
616,378
613,374
571,386
569,334
566,281
599,325
594,293
594,293
590,259
640,265

Then set the script of the button to:

on mouseUp
   lock screen
   new grc
   set the style of last grc to "Polygon"   --the Bezier control cage, going to 
be invisible
   set the name of last grc to "cLine1"
   set the visible of grc "cLine1" to false
   set the points of grc "cLine1" to the LeoPoints of me
   
   new grc
   set the style of last grc to "Polygon"   --the visible figure
   set the name of last grc to "Poly1"
   set the opaque of grc "Poly1" to true
   set the backgroundColor of grc "Poly1" to 237,205,147
   
   put the points of grc "cLine1" into cList
   
   put number of lines of clist into nLines
   
   repeat with i = 1 to nLines-3 step 3
  --startpoint
  put item 1 of line i of cList into x0
  put item 2 of line i of cList into y0
  
  --first control point
  put item 1 of line i+1 of cList into x1
  put item 2 of line i+1 of cList into y1
  
  --second control point
  put item 1 of line i+2 of cList into x2
  put item 2 of line i+2 of cList into y2
  
  --endpoint
  put item 1 of line i+3 of cList into x3
  put item 2 of line i+3 of cList into y3
  
  put x3 - 3*x2 + 3*x1 - x0 into A
  put 3*x2 - 6*x1 + 3*x0 into B
  put 3*x1 - 3*x0 into C
  put x0 into D
  
  put y3 - 3*y2 + 3*y1 - y0 into E
  put 3*y2 - 6*y1 + 3*y0 into F
  put 3*y1 - 3*y0 into G
  put y0 into H
  
  put 17 into PT  --so many points for each curve

   repeat with z = 0 to PT
  put z/PT into t
  put A*t^3 + B*t^2 + C*t + D into x
  put E*t^3 + F*t^2 + G*t + H into y
  put round(x) & "," & round(y) & return after pList
   end repeat
end repeat

set the points of grc "Poly1" to pList

new grc
set the style of last grc to "Rectangle"
set the height of last grc to height of grc "Poly1"
set the width of last grc to width of grc "Poly1"
set the loc of last grc to loc of grc "Poly1"

new grc
set the style of last grc to "Oval"
set the height of last grc to (height of grc "Poly1")*1.2
set the width of last grc to (width of grc "Poly1")*1.2
set the loc of last grc to loc of grc "Poly1"
set the bottom of last grc to bottom of grc "Poly1"
end mouseUp

Now CLICK the button!

Michael
___
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


Nice cm ruler. Only a click away

2011-11-02 Thread Michael Kristensen
Hi there

Here is a nice cm ruler that span fx a iMac 27. Only a click away.

Make a new wd
Make a btn

Put this script in it and click...

on mouseUp
   lock screen
   put 72/2.54 into Q
   
   repeat with i = 0 to 90
  new grc
  set the style of last grc to Polygon
  set the points of last grc to 25,300 & return & 25,307
  set the loc of last grc to 25+ i*Q,300
  set the selected of last grc to true
  
  new grc
  set the style of last grc to Polygon
  set the points of last grc to 39,306 & return & 39,310
  set the loc of last grc to 39+ i*Q,302
  set the selected of last grc to true
  
  new fld
  set the opaque of last fld to false
  set the width of last fld to 17
  set the height of last fld to 15
  set the textsize of last fld to 9
  set the showBorder of last fld to false
  set the margins of last fld to 0,4,0,4
  set the textAlign of last fld to center
  set the lockText of last fld to true
  set the autoHilite of last fld to false
  set the showFocusBorder of last fld to false
  set loc of last fld to 25+ i*Q,292
  put i into last fld
  set the selected of last fld to true
   end repeat
   
   group
   
   set the showBorder of last grp to true
   set the lineSize of last grp to 1
   set the threeD of last grp to false
   set the height of last grp to 27
   set the opaque of last grp to true
   set the backgroundColor of last grp to 255,255,205
   set the borderColor of last grp to 147,147,147
end mouseUp

Michael
CEO  FreeCmRulersForAll
www.FreeCmRulersForAll.org

___
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


TIP: Using Unicode chars as icons

2011-10-28 Thread Michael Kristensen
Hi there

Icons can be quite space-saving and also pleasing to the eye.

But somtimes the hazzle of making the icon in a paint app and import it into 
Livecode and keep it in a hidden place is to much.

On a Mac there is a palette calle "Keyboard".

It can show the thousands of chars/symbols in a Unicode font. 

Im sure you can find a symbol there that suits you.

The trick is to add the char to the label of the button, not the name.

Scale the char/icon by ajusting the textsize and color it as you please.

Michael
___
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: Challenge: Faking 3D extrusion of a polygon SOLVED

2011-06-09 Thread Michael Kristensen
Hi there

Here is a very fast version, with no compromise.

http://forums.runrev.com/phpBB2/viewtopic.php?f=9&t=7824&p=37483#p37483

Special thanks goes to Bernd Niggemann who worked with me offline, and was 
instrumental to the final solution.

Michael



___
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: Challenge: Faking 3D extrusion of a polygon

2011-05-30 Thread Michael Kristensen
Hi there 

Thanks to all for the input about 3D

I was not exactly what I wanted though...

Please go here and download a couple of stacks to see what i mean.

http://forums.runrev.com/viewtopic.php?f=9&t=7824&p=36629#p36629

Thanks

Mic

___
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


Challenge: Faking 3D extrusion of a polygon

2011-05-28 Thread Michael Kristensen
Challenge: Faking 3D extrusion of a polygon

Hi 
This is a challenge of making a fake 3D extrusion of a random shaped polygon. 

In very simple cases you can just copy the polygon, put it behind with a little 
offset and shade it a little darker than the front polygon.

But if the offset gets a little larger then one can see that the two polygons 
doesn't form one object.

This is a far as I have come:

Make a random polygon and name it P1
Make the color fx light green and set the lineSize to 0

Make two copies of P1 and send them behind P1
Name the two copies P2 and P3
Color them both the same darker shade of the green color.

Now make a Button with this script:

on mouseUp
   lock screen
   put points of grc P1 into points1
   
   set points of grc P2 to points1
   move grc P2 relative 25,0
   put points of grc P2 into points2
   
   put line 1 of points1 & return after newPoints
   put line 1 of points2 & return after newPoints
   
   repeat with i = 2 to number of lines of points1-1
  if not within(grc P2,line i of points1) then put line i of points1 & 
return after newPoints
  if not within(grc P1,line i of points2) then put line i of points2 & 
return after newPoints
  
  if within(grc P1,line i of points2) and within(grc P2,line i of points1) 
then put line i of points2 & return after newPoints
   end repeat
   
   put line 1 of points1 & return after newPoints2
   put line 1 of points2 & return after newPoints2
   
   repeat with i = 2 to number of lines of points1-1
  if not within(grc P1,line i of points2) then put line i of points2 & 
return after newPoints2
  if not within(grc P2,line i of points1) then put line i of points1 & 
return after newPoints2
  
  if within(grc P1,line i of points2) and within(grc P2,line i of points1) 
then put line i of points2 & return after newPoints2
   end repeat
   
   set points of grc P2 to newpoints
   set points of grc P3 to newpoints2
end mouseUp

Clicking the Button should give you an extruded looking object.

BUT…..
Both P2 and P3 are faulty.
Only together on top of each other they look right.

Can you make it better?
Can you make the extruded look with only one extra object (apart from the 
original)?

Mic
___
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: PDF with Bezier curve(s)?

2011-03-15 Thread Michael Kristensen
Thanks Monte

You have put me on the right track by mentioning "PDF Spec".

I have solved my problem now.

Thanks

Mic


> 
> I have an app (created 10 years ago so way before there were easier options) 
> that generates PDF reports including bezier curves in charts. If I can 
> generate them you'll be able to read them. The PDF spec wasn't all that much 
> fun from memory.
> 
> Cheers
> 
> Monte

___
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


PDF with Bezier curve(s)?

2011-03-15 Thread Michael Kristensen

Hi there

Would it be possible to get the bezier control points data from a pdf  
that only contains bezier curves (one or more)?


Thanks Mic

___
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