Re: Points of Graphic Oval

2017-08-02 Thread Sannyasin Brahmanathaswami via use-livecode
Mark thanks for an adventure into the clean air of abstract thought…. "This can be seen from the fact that to compute cos/sin/tan (which are the mathematical primitives in some sense acting here) require a 'taylor' expansion which is an infinite polynomial sequence (with order tending to

Re: Points of Graphic Oval

2017-08-02 Thread Mark Waddingham via use-livecode
File an enhancement - it's not something we have gotten round to doing yet but a 'flattened path' api was always on the cards to do but we hadn't gotten around to it yet. Warmest Regards, Mark. P.S. 'Flattening' is the term used to describe the process of turning paths into sequences of line

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
I have already done what you describe in a HTML5 standalone for displaying progress along a Bezier curve, using LC Script only. http://hh.on-rev.com/html5/hhProgressHTML5_2-8.0.2X.html And it is done for all LC's SVG icons using the jquery-drawsvg plugin in a browser widget (incl. optional affine

Re: Points of Graphic Oval

2017-08-02 Thread Malte Pfaff-Brill via use-livecode
Haha… Fun of having one of those touch bars on top of the keyboard and sausage-fingers… ->Not a good combo... Mark wrote: I strongly suspect Malte's animationEngine does this 'correctly' for this case as it was designed with this kind of use case in mind. Good thing: Due to the Dual license

Re: Points of Graphic Oval

2017-08-02 Thread Mark Waddingham via use-livecode
Heh - sometimes it takes a relative tome of justification to arrive at a simple explanation! However the beauty of Bézier curves is that arcs are just a small subset of what they can represent 'well enough'. For moving along an arbitrary (Bézier - you can represent a straight line segment as

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
> Mark wrote: > So, at the level of the graphic object it is a true arc, at the level of > instructing > the graphics library it is a Bézier approximation but at the level of working > out what > pixels to render it is a polygon. Thanks for arriving from your previous post at this very clear

Re: Points of Graphic Oval

2017-08-02 Thread Mark Waddingham via use-livecode
lly perhaps it has no "points" as such… being a single > continuous line shaped only by its changing arc-radius values.? > i.e. a mystic conundrum: "infinite number of points and not points at all" > > SCOTT Rossi wrote: > > You can use the effectivePoin

Re: Points of Graphic Oval

2017-08-02 Thread Mark Waddingham via use-livecode
Bézier curves are a polynomial - usually quadratic (2nd degree) or cubic (3rd degree) but the model extends to arbitrary order. With four cubic Bézier curves (so 8 quadratic) you can make an exceptionally good approximation to an oval - but it is not exact. Indeed (anyone who might have a

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
Actually you don't see "sides" of a regular 360-gon because the engine uses "trunc()" differing from my "round()" used earlier in this thread. So the approximation using "round" may be better in case you are scaling such points lists. ___ use-livecode

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
> BR wrote: >> HH wrote: >> A circle is, just like a Bezier curve, a mathematical model, for thinking, >> doing mathematics. Not realizable in our virtual world. >> What you can have and what you see are (more or less good) approximations >> to that model, here nothing more than simple

Re: Points of Graphic Oval

2017-08-02 Thread Bob Sneidar via use-livecode
WHOOPS! I mean none of the lines intersect. Bob S > On Aug 2, 2017, at 08:47 , Bob Sneidar via use-livecode > wrote: > > It's simple because all the angles are obtuse. > > Bob S ___ use-livecode mailing list

Re: Points of Graphic Oval

2017-08-02 Thread Bob Sneidar via use-livecode
It's simple because all the angles are obtuse. Bob S > On Aug 2, 2017, at 08:44 , Sannyasin Brahmanathaswami via use-livecode > wrote: > > But then, as the circle/oval got bigger one would see 360 "sides" but we > don't. So, how is it a "simple polygon"

Re: Points of Graphic Oval

2017-08-02 Thread Sannyasin Brahmanathaswami via use-livecode
HH wrote: A circle is, just like a Bezier curve, a mathematical model, for thinking, doing mathematics. Not realizable in our virtual world. What you can have and what you see are (more or less good) approximations to that model, here nothing more than simple polygons. But then,

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
The effective points of an oval (circle) are the 360 points of a regular polygon with 360 vertices (if it's closed). You could look at stack #2 of the Raspi-Collection, runs on Mac/Win/linux using LC 6/7/8/9: http://forums.livecode.com/viewtopic.php?p=98716#p98716 (in LC 8/9 add a semicolon after

Re: Points of Graphic Oval

2017-08-01 Thread Sannyasin Brahmanathaswami via use-livecode
.e. a mystic conundrum: "infinite number of points and not points at all" SCOTT Rossi wrote: You can use the effectivePoints to get the points of any graphic shape, but depending on the size, your oval may produce too many points. In any event, your source oval doesn't need to be perfect.

Re: Points of Graphic Oval

2017-07-31 Thread Bob Sneidar via use-livecode
Both are part of the joke. I shouldn't explain it because that is like disecting a frog. The frog dies and nobody cares. :-) But geometrically in any line there are an infinite number of points, because a point is an infinitely small coordinate. That's if by point you mean literally points in

Re: Points of Graphic Oval

2017-07-31 Thread Quentin Long via use-livecode
The obvious method for generating the points of an oval—use a loop that generates sin(x) & cos(x) coördinate-pairs—has already been mentioned. What's *not* so obvious, is that the points generated by that method are not evenly spaced! Not unless you're working with a perfect circle, anyway. For

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> Mark wrote: >> How do you define "strict geometry"? > That would be my seventh-grade math teacher >> And what is an "infinite amount"? > For points in an oval, that would be Aleph-one, no? I see. When you selected to return 360 points for the effective points of an oval (what is, TMHO, a

Re: Points of Graphic Oval

2017-07-31 Thread Mark Wieder via use-livecode
On 07/31/2017 08:34 AM, hh via use-livecode wrote: Bob S. wrote: By strict geometry, an infinite amount. Using Bezier, 4. :-) Just because I am curious which part of your statement is the joke: How do you define "strict geometry"? That would be my seventh-grade math teacher And what is

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> Bob S. wrote: > By strict geometry, an infinite amount. Using Bezier, 4. :-) Just because I am curious which part of your statement is the joke: How do you define "strict geometry"? And what is an "infinite amount"? ___ use-livecode mailing list

Re: Points of Graphic Oval

2017-07-31 Thread Mark Wieder via use-livecode
On 07/31/2017 07:55 AM, Bob Sneidar via use-livecode wrote: By strict geometry, an infinite amount. Using Bezier, 4. :-) Hey, no fair. Using Bezier curves is cheating. But yeah, thus my rather snarky reply which should have had a smiley thing anyway. When I wrote the effective points code

Re: Points of Graphic Oval

2017-07-31 Thread Bob Sneidar via use-livecode
By strict geometry, an infinite amount. Using Bezier, 4. :-) Bob S > On Jul 30, 2017, at 21:46 , Mark Wieder via use-livecode > wrote: > > On 07/30/2017 09:06 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > >> OK, so how can we generate the points of

Re: Points of Graphic Oval

2017-07-31 Thread Richmond via use-livecode
Personally I would do something I learnt to do in about 1976 in FORTRAN: make yourself an 800 x 800 stack, and a lineField called "POYNTS", and an irregular polygon called "POLLY" put 0 into KOUNT repeat until KOUNT > 6.29 put (KOUNT * 100) + 1 into LYNE put (400 +((sin(KOUNT))*300)) into LR

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
[Once again, without typos (although it works correctly with the typos)] The following runs in LC 6/7/8/9. ### yields points of an 'elliptical' n0-sided polygon, ### for a 'circular' shape set rx=ry. -- n0 is the number of vertices (= n0+1 points for a closed polygon) -- rx is the horizontal

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> BR wrote: > 1) draw graphic oval name: "moveClue1" > 2) create small image "word_1" > move image "word_1" to the points of grc "moveClue1" in 2 seconds > OK, so how can we generate the points of a perfect oval? > > Scott wrote:

Re: Points of Graphic Oval

2017-07-30 Thread Scott Rossi via use-livecode
You can use the effectivePoints to get the points of any graphic shape, but depending on the size, your oval may produce too many points. In any event, your source oval doesn't need to be perfect. If you reference a "decent" number of points along the shape of the oval, your image

Re: Points of Graphic Oval

2017-07-30 Thread Mark Wieder via use-livecode
On 07/30/2017 09:06 PM, Sannyasin Brahmanathaswami via use-livecode wrote: OK, so how can we generate the points of a perfect oval? How many points would you guess are in an oval? -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing

Re: Tracing Stack (was: the points of graphic)

2014-02-22 Thread BNig
cases. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4676199.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use

Re: Tracing Stack (was: the points of graphic)

2014-02-22 Thread Mats Wilstrand
Hi Bernd! Played a little with your Tracer. You're on the way to build an image to vector converter for LC. That's awesome! Best regards Mats ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Tracing Stack (was: the points of graphic)

2014-02-22 Thread Thierry Douez
Hallo Bernd, Amazing and running so fast ! Kind regards, Thierry 2014-02-22 14:43 GMT+01:00 BNig bernd.niggem...@uni-wh.de: Color Tracing, Color Tracking. here is a version of an image tracing stack that traces color images. It makes a graphic for each color. And it makes a combined

Re: Tracing Stack (was: the points of graphic)

2014-02-22 Thread BNig
-Stack-was-the-points-of-graphic-tp4674846p4676220.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: Tracing Stack (was: the points of graphic)

2014-02-07 Thread BNig
in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4675591.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Tracing Stack (was: the points of graphic)

2014-02-07 Thread Scott Rossi
That's pretty awesome Bernd -- works well on a complex image. :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 2/7/14 3:00 PM, BNig bernd.niggem...@uni-wh.de wrote: there is a new version of a stack that traces transparent images

Re: Tracing Stack (was: the points of graphic)

2014-02-07 Thread Roger Eller
info from maskData and renders the shapes as graphic. Now renders all subshapes also. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4675591.html Sent from the Revolution - User mailing

Re: Tracing Stack (was: the points of graphic)

2014-02-07 Thread BNig
Roger, Scott, thank you. Just wait for the colorTrace version (hint, hint) For early version testers contact me by mail. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4675594.html Sent

Re: Tracing Stack (was: the points of graphic)

2014-02-07 Thread Roger Eller
bernd.niggem...@uni-wh.de wrote: Roger, Scott, thank you. Just wait for the colorTrace version (hint, hint) For early version testers contact me by mail. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points

Re: Tracing Stack (was: the points of graphic)

2014-02-07 Thread Bob Sneidar
Never ceases to amaze me the stuff Livecoders come up with! And if Scott likes something graphicky, it’s gotta be good! Bob On Feb 7, 2014, at 15:26 , Scott Rossi sc...@tactilemedia.com wrote: That's pretty awesome Bernd -- works well on a complex image. :-) Regards, Scott Rossi

Re: Tracing Stack (was: the points of graphic)

2014-01-23 Thread BNig
-- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4674979.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode

Re: Tracing Stack (was: the points of graphic)

2014-01-23 Thread Roger Eller
in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4674979.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Tracing Stack (was: the points of graphic)

2014-01-23 Thread Alejandro Tejada
leaf is traced. How could we trace all parts of this image? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4674992.html Sent from the Revolution - User mailing list archive at Nabble.com

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=9t=13399p=64351#p64351 Michael ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Tracing Stack (was: the points of graphic)

2014-01-20 Thread Roger Eller
That is definitely a step in the right direction. My wish is that it could follow the outline of multiple poly objects, rather than needing an image file. The workaround is to screenshot the LC objects, and trace that image. Thanks for posting this! Great work! ~Roger On Mon, Jan 20, 2014 at

Re: Tracing Stack (was: the points of graphic)

2014-01-20 Thread Alejandro Tejada
a new point between two points in the vector graphic. Keep Up this great work! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Tracing-Stack-was-the-points-of-graphic-tp4674846p4674852.html Sent from the Revolution - User mailing list archive at Nabble.com

Re: Tracing Stack (was: the points of graphic)

2014-01-20 Thread Roger Guay
One of the great features of SuperCard was its Auto-Trace tool which I have tried to replicate in LiveCode on several occasions and failed. I believe you have, at least, a great start here, Michael. Thank you very much! Roger Guay On Jan 20, 2014, at 7:48 AM, Michael Kristensen

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

Re: the points of graphic

2014-01-19 Thread Jim Hurley
frivolous, frivolous but fun, like shattering a circle and reforming the bits and pieces into a rectangle. Jim Message: 10 Date: Sat, 18 Jan 2014 11:20:02 -0500 From: Roger Eller roger.e.el...@sealedair.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: the points of graphic

Re: the points of graphic

2014-01-19 Thread Roger Eller
On Sun, Jan 19, 2014 at 12:09 PM, Jim Hurley wrote: Hi Roger, Praying on my ego are you? Um, yes. :) I don't really think I am up to this challenge. I'm not quite sure what is needed. Well, I guess Adobe is in no danger of a LiveCode application competitor then. /joke I would love

Re: the points of graphic

2014-01-19 Thread Jim Hurley
Thanks, Klaus, and sorry Michael. I forgot. I have sine and cosine functions in the stack script: function sine tAngle return sin(tAngle /180*pi) end sine Similarly for the cosine. Jim Hi Michael, Am 19.01.2014 um 16:41 schrieb Michael Kristensen michael-kristensen at dsa-net.dk :

Re: the points of graphic

2014-01-18 Thread Roger Eller
://dl.dropboxusercontent.com/u/3834621/LiveCode_regularPolygonToolv2.jpg Have a nice weekend! :-) Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/the-points-of-graphic-tp4674762p4674791.html Sent from the Revolution - User mailing list archive at Nabble.com

Re: the points of graphic

2014-01-18 Thread Jim Hurley
Message: 2 Date: Fri, 17 Jan 2014 16:00:43 +0200 From: j...@souslelogo.com To: use-revolut...@lists.runrev.com Subject: the points of graphic Message-ID: b058292c0d6ba33b59b2906da17e9271.squirrel@185.8.104.234 Content-Type: text/plain;charset=iso-8859-1 Hi list, Is there a way

Re: the points of graphic

2014-01-18 Thread Roger Eller
. THAT would be uber-useful! ~Roger On Jan 18, 2014 11:04 AM, Jim Hurley jhurley0...@sbcglobal.net wrote: Message: 2 Date: Fri, 17 Jan 2014 16:00:43 +0200 From: j...@souslelogo.com To: use-revolut...@lists.runrev.com Subject: the points of graphic Message-ID

the points of graphic

2014-01-17 Thread jbv
Hi list, Is there a way to get the points of a Regular Polygon graphic, or do I have to compute it myself using the loc, width, height and number of sides of the graphic ? Thanks, jbv ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: the points of graphic

2014-01-17 Thread Mark Schonewille
Hi jbv, I don't think there is an easy way to get the points of a regular polygon. If you are going to do calculations, you might as well calculate the points for the shape you want and use these for an (irregular) polygon. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and

Re: the points of graphic

2014-01-17 Thread Craig Newman
There is a thread on this in the forums. Only freehand graphics, lines and polylines have points. Regular polygons and even rectangles do not. I made a feature request for this. But the forum thread addresses this thoroughly, including workarounds from Hermann and others Craig Sent from my

Re: the points of graphic

2014-01-17 Thread Alejandro Tejada
this message in context: http://runtime-revolution.278305.n4.nabble.com/the-points-of-graphic-tp4674762p4674791.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit