Resizing Splash screen
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9476
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Resizing Splash screen
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?
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?
-
- Livecode Opensource Backer
- Posts: 9476
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Resizing Splash screen
I have tried the same thing with a regular polygon graphic filled with a gradient and still get the same jiggly effect.
-
- VIP Livecode Opensource Backer
- Posts: 327
- Joined: Sun Apr 15, 2012 1:17 am
- Location: USA
- Contact:
Re: Resizing Splash screen
It makes it a little better if, inside the repeat, you "lock screen" before doing the "set's" and "unlock screen" after them.
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
-
- Livecode Opensource Backer
- Posts: 9476
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Resizing Splash screen
I think, Newbie4, you had better mosey over to the Use-List where this discussion is currently on full-throttle.
Re: Resizing Splash screen
Probably, this message belongs to this forum:
http://forums.runrev.com/viewforum.php?f=10
Clearly, you question is not Off-Topic...
http://forums.runrev.com/viewforum.php?f=10
Clearly, you question is not Off-Topic...
-
- VIP Livecode Opensource Backer
- Posts: 327
- Joined: Sun Apr 15, 2012 1:17 am
- Location: USA
- Contact:
Re: Resizing Splash screen
Thanks for the suggestion, I will
BTW If you make the following changes to your code, it works much smoothly:
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
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
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Resizing Splash screen
..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 1 time in total.
shiftLock happens
Re: Resizing Splash screen
Hi Hermann,
Many thanks for posting this stack.
Al
Work really fine on Windows too![-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]
Many thanks for posting this stack.
Al
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Resizing Splash screen
..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 1 time in total.
shiftLock happens
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Resizing Splash screen
..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 2 times in total.
shiftLock happens
Re: Resizing Splash screen
Wonderful! Many Thanks for updating
your demo stack.
Al
your demo stack.
Al
-
- Livecode Opensource Backer
- Posts: 9476
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Resizing Splash screen
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.
I also wonder how one can slow the resizing down without ending up with a jerking effect.
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Resizing Splash screen
..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 1 time in total.
shiftLock happens
Re: Resizing Splash screen
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
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