Hi all,
I'm trying to create a transition effect where the screen is wiped to black by a circle that zooms to the center. To clarify, when the effect starts, the circle is larger than the screen and keeps reducing in size to the point where there is a single pixel in the middle. At the 1/2 way point you would have 1/2 the screen in the middle still visible within the circle, everything outside the circle would be black.
I hope I've been clear in trying to explain the effect, it if helps I think batman (the TV series had a similar effect except the circle was the batman logo?
My problems are:
1) Pixmaps are too slow to draw a circle mask each frame
2) How does one draw an 'inverse circle' quickly ? i.e. a rect with a circle punched out of the middle
Can anyone think of an easy way to achieve this effect keeping in mind that I would like to keep the game animating while the transition is in progress (i.e. the effect should make minimal use of resources)
Anyhow - I look forward to any help that you can provide.
I'm trying to create a transition effect where the screen is wiped to black by a circle that zooms to the center. To clarify, when the effect starts, the circle is larger than the screen and keeps reducing in size to the point where there is a single pixel in the middle. At the 1/2 way point you would have 1/2 the screen in the middle still visible within the circle, everything outside the circle would be black.
I hope I've been clear in trying to explain the effect, it if helps I think batman (the TV series had a similar effect except the circle was the batman logo?
My problems are:
1) Pixmaps are too slow to draw a circle mask each frame
2) How does one draw an 'inverse circle' quickly ? i.e. a rect with a circle punched out of the middle
Can anyone think of an easy way to achieve this effect keeping in mind that I would like to keep the game animating while the transition is in progress (i.e. the effect should make minimal use of resources)
Anyhow - I look forward to any help that you can provide.