This might be useful for some (New AGAIN)

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: This might be useful for some (New AGAIN)

Post by bn » Thu Jan 23, 2014 11:38 pm

Salut Jean-Marc,

glad you like it.
please tell me if you find an image where it does not work properly. I would be interested to see that.

Kind regards
Bernd

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

Re: This might be useful for some (New AGAIN)

Post by dave.kilroy » Fri Jan 24, 2014 12:41 am

Nice work Bernd

I have no absolutely idea how I could use this, but irrespective of that, I appreciate it...
"...this is not the code you are looking for..."

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: This might be useful for some (New AGAIN)

Post by bn » Fri Jan 24, 2014 1:38 am

Hi Dave,

thank you.
I have no absolutely idea how I could use this
actually I mostly liked the idea. It was kind of a challenge that came up on the use-list. A bit like playing chess. Or "how to almost go BANANAS implementing an algorithm..." :)

Kind regards
Bernd

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: This might be useful for some (New AGAIN)

Post by capellan » Fri Jan 24, 2014 4:33 am

Hi Bernd,

Excellent work! :D
Did you have code to select and trace each part of an image?

For example, trace this image:
http://www.clker.com/cliparts/c/a/6/c/1 ... svg.hi.png
(from this page: http://www.clker.com/clipart-13748.html)

Just one leaf is traced.
How could we trace all parts of this image?
Thanks in advance!

Al

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

Re: This might be useful for some (New AGAIN)

Post by FourthWorld » Fri Jan 24, 2014 8:08 am

jmburnod wrote:It will be very useful for a shadow theater in which we work
Wayang?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

Re: This might be useful for some (New AGAIN)

Post by dave.kilroy » Fri Jan 24, 2014 10:23 am

bn wrote: actually I mostly liked the idea. It was kind of a challenge that came up on the use-list. A bit like playing chess. Or "how to almost go BANANAS implementing an algorithm..." :)
Ah I had almost forgotten about BANANAS, should have known they would return to strike again (lucky I didn't slip up on them). If this keeps up BANANAS will become the second most powerful word on this forum after CHEESE :)
"...this is not the code you are looking for..."

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: This might be useful for some (New AGAIN)

Post by bn » Fri Jan 24, 2014 10:51 am

Hi Dave,

:)

Just don't change your tagline yet...

imagine replacing "coder" with the B-word...

That would certainly raise some eyebrows with the moderators.

Kind regards
Bernd

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

Re: This might be useful for some (New AGAIN)

Post by dave.kilroy » Fri Jan 24, 2014 11:12 am

too late...
"...this is not the code you are looking for..."

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: This might be useful for some (New AGAIN)

Post by bn » Fri Jan 24, 2014 11:18 am

Boy, oh boy,

poor William Shakespeare

:) :) :)

Bernd

for those who wonder what this Banana buisiness is all about: it refers to this thread
http://forums.runrev.com/phpBB2/viewtop ... nas#p92785

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: This might be useful for some (New AGAIN)

Post by jmburnod » Sat Jan 25, 2014 1:58 pm

Richard,
A kind of Wayang with personage created by children to illustrate
some stories they write.

Bernd
I have done some tries with an image "fff" created with the LiveCode paint tools.
It works fine and will be very useful for our pratice which work with simple shapes.
http://www.alternatic.ch/jmb/devrev/Maax_walk.png

Resizing the graphic works well.
I suggest a Bernd's "smoothShape" script for the resizing
If Bernd didn't write this script before sunday we can use an "outer Glow" effect to get a kind of smoothed shape.

Kind regards

Jean-Marc
https://alternatic.ch

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: This might be useful for some (New AGAIN)

Post by bn » Sat Jan 25, 2014 2:27 pm

Salut Jean-Marc

if I understand you correctly you want to smooth the graphic. That is very tricky to do. Now the graphic has every point of the contour of the image, that makes it jaggy.

Michael Kristensen has made a button "Reduce /2". That button reduces the number of points and thus smoothes the graphic somewhat. Could you experiment with that function and tell me if that is kind of what you want?
Aply the button multiple times until it gets too "smooth" and then hit the undo button.

Kind regards
Bernd

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: This might be useful for some (New AGAIN)

Post by jmburnod » Sun Jan 26, 2014 1:09 am

Hi Bernd,
Yes, I tried and the result is good with a three time "reduce /2", 190 points as you said.
That is very useful to store a lot of shape in a simple text file.
Anyway. The result is nice for our project.
I have done some experiment for animation based on a points list
Thanks again
Kind regards
Jean-Marc
https://alternatic.ch

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

Re: This might be useful for some (New AGAIN)

Post by FourthWorld » Sun Jan 26, 2014 1:53 am

Jim, if you're not familiar with Maria Boadman you may enjoy how she sometimes takes Wayang in more modern directions:
http://www.balibeyond.com/performances.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: This might be useful for some (New AGAIN)

Post by jmburnod » Sun Jan 26, 2014 11:44 am

Richard,
Thank for this link. I was in Bali for a wonderful trip on our double-bicycle (tandem) but I didn't know the work of Maria Boadman
I'm afraid that will be difficult to simulate the charm of the real fire light.
https://alternatic.ch

micmac
Posts: 49
Joined: Mon May 30, 2011 9:00 am

Re: This might be useful for some (New AGAIN)

Post by micmac » Fri Mar 12, 2021 7:45 pm

Hi there

This is a tool to make graphics for popUp palettes etc.

The advantage is ease of use and only a single graphic.

Michael
PopUp.jpg
Fair and Square PopUp Palette.livecode.zip
(3.8 KiB) Downloaded 245 times

Post Reply

Return to “Talking LiveCode”