Klaus.
Bravo, I completely forgot that the "effective" keyword is magical, far more than its small dictionary entry would suggest.
Craig
Scripting A Curve Graphic
Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller
Re: Scripting A Curve Graphic
So I double-clicked an oval graphic out of the toolBar, a circle 120 pixels in diameter, and asked for the number of lines of the effective points. I got 352.
The circumference is 377 pixels, so the circle is pretty well filled with points, likely no tiny straight lines at all. In other words, as smooth as one can get.
What the OP really wanted was that sort of resolution when specifying a curve by three points. But LC does not know that is the intent. Given three points (which does completely describe a single unique arc) LC would have no idea.
ChatGPT shows how to take the three coordinates you supply and build a complete arc with all parameters.
Craig
The circumference is 377 pixels, so the circle is pretty well filled with points, likely no tiny straight lines at all. In other words, as smooth as one can get.
What the OP really wanted was that sort of resolution when specifying a curve by three points. But LC does not know that is the intent. Given three points (which does completely describe a single unique arc) LC would have no idea.
ChatGPT shows how to take the three coordinates you supply and build a complete arc with all parameters.
Craig
-
PaulDaMacMan
- Posts: 697
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Scripting A Curve Graphic
The graphics controls curves are only 'real' curves, until you get the effective points, then it becomes all straight lines and looks like a tracing of edge of a pixel image. Enlarge the shape and you'll see that. Graphics 'classic' controls never did real Bézier curves like a vector drawing app does. From a vector drawing app perspective 'the effective points' method of getting paths from rounded corners or oval shapes is practically useless (unless you have a good path smoothing filter). You can do real curves with xBuilder Canvas drawing though, and you can also use 'drawcompile' to put vector SVG into Image controls since LC v9. Although you can't edit the paths once they've been shoe-horned into an image control this way, they're still resolution independent, with real curves data inside (and a certain fork project can now extract them back out to SVGdunbarx wrote: Wed Nov 04, 2026 11:51 pm The circumference is 377 pixels, so the circle is pretty well filled with points, likely no tiny straight lines at all. In other words, as smooth as one can get.
What the OP really wanted was that sort of resolution when specifying a curve by three points. But LC does not know that is the intent. Given three points (which does completely describe a single unique arc) LC would have no idea.
-
richmond62
- Livecode Opensource Backer

- Posts: 10531
- Joined: Fri Feb 19, 2010 10:17 am
Re: Scripting A Curve Graphic
Probably time for a fork, as the dish ran away with the spoon quite some time syne. 
-
johnmiller1950
- Posts: 120
- Joined: Mon Apr 30, 2007 3:33 pm
Re: Scripting A Curve Graphic
This is John, the OP.
For my purposes, I think I can create an invisible oval then get the effective points and create an invisible curve with just the first half of those points. I’ll try this when I get home today and see if it works. Thanks everybody for your help and input.
For my purposes, I think I can create an invisible oval then get the effective points and create an invisible curve with just the first half of those points. I’ll try this when I get home today and see if it works. Thanks everybody for your help and input.
