Page 1 of 1

Resizing Splash screen

Posted: Fri Oct 25, 2013 7:57 pm
by richmond62
A very long time ago (about 40 years ago) I remember an educational TV programme that started with an image that expanded from a dot in the middle of the screen.

It occurred to me that this might not be a bad idea for a splash screen.

I "had a go" and have attached it here.

The main problem is that to make it slow enough for it not to expand so quickly the viewer doesn't really see it one has to use "wait 2 ticks" in the script, and this results in the expanding
tomato jiggling around in a slightly disconcerting fashion.

I wonder if the scalable vector graphics in the Kickstarter stretch goals will mean that this phenomenon will soon be a thing of the past?
splash.livecode.zip
This is the stack I refer to.
(156.51 KiB) Downloaded 305 times

Re: Resizing Splash screen

Posted: Sat Oct 26, 2013 5:15 pm
by richmond62
I have tried the same thing with a regular polygon graphic filled with a gradient and still get the same jiggly effect.
splashx.livecode.zip
Splash screen with regular polygon graphic
(739 Bytes) Downloaded 326 times

Re: Resizing Splash screen

Posted: Sat Oct 26, 2013 7:44 pm
by Newbie4
It makes it a little better if, inside the repeat, you "lock screen" before doing the "set's" and "unlock screen" after them.

Re: Resizing Splash screen

Posted: Sat Oct 26, 2013 8:15 pm
by richmond62
I think, Newbie4, you had better mosey over to the Use-List where this discussion is currently on full-throttle.
LC_gadfly.png

Re: Resizing Splash screen

Posted: Sat Oct 26, 2013 8:41 pm
by capellan
Probably, this message belongs to this forum:
http://forums.runrev.com/viewforum.php?f=10

Clearly, you question is not Off-Topic... :shock:

Re: Resizing Splash screen

Posted: Sat Oct 26, 2013 9:09 pm
by Newbie4
Thanks for the suggestion, I will

BTW If you make the following changes to your code, it works much smoothly:

Code: Select all

repeat until DIMZ=4
      lock screen
      put (DIMZ - 1) into DIMZ
       set the width of stack "SPLASH" to DIMZ
      set the height of stack "SPLASH" to DIMZ
      set the width of img "tom" to DIMZ
      set the height of img "tom" to DIMZ
      unlock screen
      wait 2 ticks
   end repeat
 
do the same to the second part - add lock/unlock screen before the wait line and remove the setting of the top and left of the image before changing the width/height and change the increment to 1

Re: Resizing Splash screen

Posted: Sun Oct 27, 2013 12:49 am
by [-hh]
..........

Re: Resizing Splash screen

Posted: Sun Nov 17, 2013 11:27 pm
by capellan
Hi Hermann,
[-hh] wrote: [snip]
This all together works on my oldest machine (PPC/Tiger) very good.
And it is pretty fast. I recently used this technique elsewhere and
apply it now for your Halloween-like TOM.
[snip]
Work really fine on Windows too! :D
Many thanks for posting this stack. 8)

Al

Re: Resizing Splash screen

Posted: Sat Nov 30, 2013 9:20 pm
by [-hh]
..........

Re: Resizing Splash screen

Posted: Sat Dec 14, 2013 5:37 pm
by [-hh]
..........

Re: Resizing Splash screen

Posted: Sun Dec 15, 2013 3:13 am
by capellan
Wonderful! Many Thanks for updating
your demo stack. :D

Al

Re: Resizing Splash screen

Posted: Sun Dec 15, 2013 10:15 am
by richmond62
On Linux (at least) when the images resize they leave odd grey trackmarks on screen.

I also wonder how one can slow the resizing down without ending up with a jerking effect.

Re: Resizing Splash screen

Posted: Sun Dec 15, 2013 11:34 am
by [-hh]
..........

Re: Resizing Splash screen

Posted: Sun Dec 15, 2013 7:44 pm
by capellan
I am reading this forum from Lubuntu 13.10
where the windowshape property would not
work until I install and configure a compositing
manager.

http://en.wikipedia.org/wiki/Compositing_window_manager

Later, today, I will boot into Windows and will
report back. :)

Have a nice weekend!

Al