Flip Your Lid

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Flip Your Lid

Post by richmond62 » Sun Apr 06, 2014 7:26 pm

This is a flipping nuisance in many respects:

1. The absolutely miniscule size limit on files that can be uploaded here.

2. My version (hijacking Hermann's code) goes back-to-front.

it's here: http://andregarzia.on-rev.com/richmond/ ... vecode.zip

Grateful for any sorting out that can be done with the code.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Flip Your Lid

Post by [-hh] » Sun Apr 06, 2014 7:48 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:15 pm, edited 1 time in total.
shiftLock happens

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Flip Your Lid

Post by richmond62 » Sun Apr 06, 2014 7:57 pm

The "wise guy" on my right told me he was a pensioner who dropped in because the first day was free, and so was the wine:
he seemed a pleasant sort of chap so we had a drink together.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Flip Your Lid

Post by [-hh] » Sun Apr 06, 2014 9:09 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:15 pm, edited 2 times in total.
shiftLock happens

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Flip Your Lid

Post by [-hh] » Mon Apr 07, 2014 3:08 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:15 pm, edited 1 time in total.
shiftLock happens

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

Re: Flip Your Lid

Post by bn » Mon Apr 07, 2014 11:27 am

Hi,

I tried to find a solution that does not use images/alphaData.

It uses a graphic with a gradient and some ink magic. It imports one snapshot.

The logic is in the background group "nav"

The gradient can be tweaked to have a sharper border. If one can live with the shape of the gradient than this would be a way to make a transition effect. (btw originally I used a linear gradient that reveals diagonally).


The code to calculate the path is lifted from somebodys code, I think it is from Craig Newman.

And I would be very interested in how/if it works on Rasperry PI. And of course on Linux.

It works as intended in Livecode 6.5 and up (including 7.0DP2). 5.5 up to 6.1.3 there is an issue with ink, if anyone asks for it I would look into it. All testing done on MacOSX 10.6.8.

Kind regards

Bernd
Attachments
Flipping_0_2BN.livecode.zip
(212.82 KiB) Downloaded 253 times

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Flip Your Lid

Post by [-hh] » Mon Apr 07, 2014 2:05 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:14 pm, edited 1 time in total.
shiftLock happens

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

Re: Flip Your Lid

Post by bn » Tue Apr 08, 2014 12:24 am

Hi Hermann,

thank you for your kind words.

Unfortunately I can not get the effect to work on LiveCode 6.1.3 and below. The stacking of ink effects does not work the same as in LC 6.5 and onwards.
So it is only half of the effect for users of LC 6.1.3 and below.

Kind regards
Bernd

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Flip Your Lid

Post by [-hh] » Tue Apr 08, 2014 2:26 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:14 pm, edited 1 time in total.
shiftLock happens

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Flip Your Lid

Post by [-hh] » Tue Apr 08, 2014 2:43 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:14 pm, edited 1 time in total.
shiftLock happens

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

Re: Flip Your Lid

Post by bn » Wed Apr 09, 2014 11:43 am

Hi Hermann,
The stack from my last post works 'smoothly' at different combination of stack sizes and "animation steps". But for other combinations not, there is a strange flickering near the end of animation. Try for example to increase the width and to decrease the height in several steps. You'll find soon a size causing this flickering at end.
The flickering is due to rounding errors when the angle between "To" and "Via" gets too small.

The explanation is a bit technical and would put too many readers asleep. Anybody interested in this can PM me.

Kind regards
Bernd

Post Reply

Return to “Off-Topic”