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

Want to move your code and projects to LiveCode but don't know where to start?

Moderators: FourthWorld, heatherlaine, Klaus, robinmiller

Post Reply
Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Wed Mar 26, 2014 7:04 pm

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
=^..^=
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

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

Post by Mark » Fri Mar 28, 2014 6:11 pm

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

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Wed Apr 02, 2014 12:07 pm

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
=^..^=
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Wed Apr 02, 2014 4:16 pm

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Tue Apr 08, 2014 5:23 pm

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
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Wed Apr 09, 2014 12:48 am

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Tue Apr 15, 2014 4:44 pm

Thank you Richard!!!!
SMACK!!! :D

=^..^=
Mariasole
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

Post Reply

Return to “Converting to LiveCode”