Page 1 of 1

=^..^= LC and the "graphic-mathematical power"!

Posted: Wed Mar 26, 2014 7:04 pm
by Mariasole
Hello!
Everywhere I speak and diffuse LiveCode (and LC server! Course! :P ).
But a friend of mine laughed :evil: about LC and its "graphic-mathematical power" and challenged me :twisted: .
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! :roll:

He told me: "the algorithm is already written, you just have to copy." And then: "AH AH AH AH AH AH AH!!!!!!". :twisted: :twisted: :twisted: :twisted:

Can anyone help me? Is it possible to reproduce this algorithm in LC? :!:

Grazie e baci!!!

Mariasole
=^..^=

Re: =^..^= LC and the "graphic-mathematical power"!

Posted: Fri Mar 28, 2014 6:11 pm
by Mark
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

Re: =^..^= LC and the "graphic-mathematical power"!

Posted: Wed Apr 02, 2014 12:07 pm
by Mariasole
Thanks Mark!
Then I start to work! I want to win the challenge! 8)
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.
Could you advise me an example stack (or a simple tutorial) of the "intersect function"? I do not know where to start! :roll:

I'm sorry if I'm taking advantage of your kindness. Do not feel obligated to help me! :oops:

Thank you again!
Mariasole
=^..^=

Re: =^..^= LC and the "graphic-mathematical power"!

Posted: Wed Apr 02, 2014 4:16 pm
by FourthWorld
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

Re: =^..^= LC and the "graphic-mathematical power"!

Posted: Tue Apr 08, 2014 5:23 pm
by Mariasole
Thank you Richard!
You are very kind and patient with me! :oops:
I saw the stack and is a good base to work! 8) Thank you very much.
I am writing with delay because I'm going from Windows XP to Linux and I'm no expert ( :shock: ).
Obviously I have already installed the LC! :P
Now I will have to study twice, namely LC and LC Server Linux! :wink:
Thank you Richard, and congratulations for your new role as Community Manager! :mrgreen:

Long live the LiveCode!
Long live the Community Manager!


Baci e in bocca al lupo! :wink:
=^..^= Mariasole

Re: =^..^= LC and the "graphic-mathematical power"!

Posted: Wed Apr 09, 2014 12:48 am
by FourthWorld
Mariasole wrote:Thank you Richard, and congratulations for your new role as Community Manager!
Well, being volunteer position perhaps condolences may be the better word. :) But thank you just the same.

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

Re: =^..^= LC and the "graphic-mathematical power"!

Posted: Tue Apr 15, 2014 4:44 pm
by Mariasole
Thank you Richard!!!!
SMACK!!! :D

=^..^=
Mariasole