Fade in/out of images

6 posts / 0 new
Last post
AmigaBlitter
AmigaBlitter's picture
Offline
Last seen: 6 years 9 months ago
Joined: 2012-02-18 19:55
Fade in/out of images

Hello everyone,

in the SDK there's an example on how to fade a window. Is it possible to fade only the background (an image) of the window, letting the window unchanged?

Thank you very much.

tekmage
tekmage's picture
Offline
Last seen: 2 years 2 weeks ago
Joined: 2011-10-09 03:19
I'd be interested to learn

I'd be interested to learn more about this too. If you look at the source to Steven's presentation at the Programming Seminar before AmiWest he uses the WA_FadeTime:

  1. WA_FadeTime, 180000,

You can get the code here: AmiWest Lesson 4. The video should be coming in the next few weeks.

Cheers,
Bill "tekmage" Borsari

thomas
thomas's picture
Offline
Last seen: 3 months 1 week ago
Joined: 2011-05-16 14:23
I don't think there is a

I don't think there is a ready-to-go function to fade images.

Here is an example how to do it manually:

http://thomas-rapp.homepage.t-online.de/examples/fade_os3.c for OS 3.x, CPU driven
http://thomas-rapp.homepage.t-online.de/examples/fade_os4.c for OS 4.1, using CompositeTags

AmigaBlitter
AmigaBlitter's picture
Offline
Last seen: 6 years 9 months ago
Joined: 2012-02-18 19:55
Thank you for the help.

Thank you for the help.

kas1e
kas1e's picture
Offline
Last seen: 3 months 4 days ago
Joined: 2010-11-30 15:30
@AmigaBlitter in the SDK

@AmigaBlitter


in the SDK there's an example on how to fade a window. Is it possible to fade only the background (an image) of the window, letting the window unchanged?

Just in case: you also can go warp3d way to make a fade in/out of images in fast way (by changing alpha or color values). Through it will be not so friendly as not all the amigas have warp3d capable cards, but as one more solution ..

AmigaBlitter
AmigaBlitter's picture
Offline
Last seen: 6 years 9 months ago
Joined: 2012-02-18 19:55
Thank you for the suggestion.

Thank you for the suggestion. I'm focusing on OS4 only at the moment, just to learn.

Log in or register to post comments