=^..^= LC and the "graphic-mathematical power"!
Moderators: FourthWorld, heatherlaine, Klaus, robinmiller
=^..^= LC and the "graphic-mathematical power"!
Hello!
Everywhere I speak and diffuse LiveCode (and LC server! Course! ).
But a friend of mine laughed about LC and its "graphic-mathematical power" and challenged me .
I have been able to respond to some (eg, Bezier curves, etc.) for other I do not know!
For example, he says that LC can not play this algorithm.
http://mathematica.stackexchange.com/qu ... /2360#2360
He says that this is the perfect test, since it is mathematics, graphics and physics!
He told me: "the algorithm is already written, you just have to copy." And then: "AH AH AH AH AH AH AH!!!!!!".
Can anyone help me? Is it possible to reproduce this algorithm in LC?
Grazie e baci!!!
Mariasole
=^..^=
Everywhere I speak and diffuse LiveCode (and LC server! Course! ).
But a friend of mine laughed about LC and its "graphic-mathematical power" and challenged me .
I have been able to respond to some (eg, Bezier curves, etc.) for other I do not know!
For example, he says that LC can not play this algorithm.
http://mathematica.stackexchange.com/qu ... /2360#2360
He says that this is the perfect test, since it is mathematics, graphics and physics!
He told me: "the algorithm is already written, you just have to copy." And then: "AH AH AH AH AH AH AH!!!!!!".
Can anyone help me? Is it possible to reproduce this algorithm in LC?
Grazie e baci!!!
Mariasole
=^..^=
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator
Re: =^..^= LC and the "graphic-mathematical power"!
Hi Mariasole,
It is possible. The only problem is positioning the words correctly. Probably, smart use of the intersect function in LiveCode may make this easier than in Mathematica (Just make sure that all rects of the words overlap by 2 pixels and you can quickly find the intersecting coordinates and figure out which one is closest to the center. Compare that coordinate with the center top, center bottom, center left and center right coordinates of the cloud as a whole to determine where to position the next word.
Ask your friend to use Mathematica to make an arcade game that keeps high scores in a sqlite database and uploads the scores to a server that also uses Mathematica scripts to store the same scores in a MySQL database and display them in a dynamic website and ask him to use Mathematica to compile the game for Windows, Linux, Mac OS X, Android and iOS.
One should just use the right tools for every job. Sometimes it is Mathematica, sometimes LiveCode, often something completely different.
Kind regards,
Mark
It is possible. The only problem is positioning the words correctly. Probably, smart use of the intersect function in LiveCode may make this easier than in Mathematica (Just make sure that all rects of the words overlap by 2 pixels and you can quickly find the intersecting coordinates and figure out which one is closest to the center. Compare that coordinate with the center top, center bottom, center left and center right coordinates of the cloud as a whole to determine where to position the next word.
Ask your friend to use Mathematica to make an arcade game that keeps high scores in a sqlite database and uploads the scores to a server that also uses Mathematica scripts to store the same scores in a MySQL database and display them in a dynamic website and ask him to use Mathematica to compile the game for Windows, Linux, Mac OS X, Android and iOS.
One should just use the right tools for every job. Sometimes it is Mathematica, sometimes LiveCode, often something completely different.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: =^..^= LC and the "graphic-mathematical power"!
Thanks Mark!
Then I start to work! I want to win the challenge!
I'm sorry if I'm taking advantage of your kindness. Do not feel obligated to help me!
Thank you again!
Mariasole
=^..^=
Then I start to work! I want to win the challenge!
Could you advise me an example stack (or a simple tutorial) of the "intersect function"? I do not know where to start!Mark wrote:Probably, smart use of the intersect function in LiveCode may make this easier than in Mathematica (Just make sure that all rects of the words overlap by 2 pixels and you can quickly find the intersecting coordinates and figure out which one is closest to the center. Compare that coordinate with the center top, center bottom, center left and center right coordinates of the cloud as a whole to determine where to position the next word.
I'm sorry if I'm taking advantage of your kindness. Do not feel obligated to help me!
Thank you again!
Mariasole
=^..^=
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator
-
- VIP Livecode Opensource Backer
- Posts: 9857
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: =^..^= LC and the "graphic-mathematical power"!
Mariasole, while not exactly the same as the Mathematica example, the stack downloadable in the LiveCode newsletter article on making a tag cloud may help you get started:
http://newsletters.livecode.com/june/is ... etter2.php
http://newsletters.livecode.com/june/is ... etter2.php
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: =^..^= LC and the "graphic-mathematical power"!
Thank you Richard!
You are very kind and patient with me!
I saw the stack and is a good base to work! Thank you very much.
I am writing with delay because I'm going from Windows XP to Linux and I'm no expert ( ).
Obviously I have already installed the LC!
Now I will have to study twice, namely LC and LC Server Linux!
Thank you Richard, and congratulations for your new role as Community Manager!
Long live the LiveCode!
Long live the Community Manager!
Baci e in bocca al lupo!
=^..^= Mariasole
You are very kind and patient with me!
I saw the stack and is a good base to work! Thank you very much.
I am writing with delay because I'm going from Windows XP to Linux and I'm no expert ( ).
Obviously I have already installed the LC!
Now I will have to study twice, namely LC and LC Server Linux!
Thank you Richard, and congratulations for your new role as Community Manager!
Long live the LiveCode!
Long live the Community Manager!
Baci e in bocca al lupo!
=^..^= Mariasole
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator
-
- VIP Livecode Opensource Backer
- Posts: 9857
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: =^..^= LC and the "graphic-mathematical power"!
Well, being volunteer position perhaps condolences may be the better word. But thank you just the same.Mariasole wrote:Thank you Richard, and congratulations for your new role as Community Manager!
I've been impressed by RunRev's commitment to open source process, and I see a lot of good stuff happening down the road.
As you dive deeper into Linux, you'll no doubt be using bash now and then - if you're not already a shell scripting expert you may find this helpful:
http://tldp.org/LDP/Bash-Beginners-Guid ... index.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: =^..^= LC and the "graphic-mathematical power"!
Thank you Richard!!!!
SMACK!!!
=^..^=
Mariasole
SMACK!!!
=^..^=
Mariasole
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator