Hello people of teh interwebz!!11!eleven!
I'm having some trouble with some image kit commands and wondered if anyone could help me.
I have 4 images. (Lets call them 01, 02, 03, and final.
I'd like to use the paste image on image command, to paste image 01 onto Final with full alpha, then image 02 onto that with another alpha, then finally paste 03 onto that with another alpha value.
I'd like to have a sliding scale from 1 to 512 (for example) when when the slider is at 0, only image 01 should be visible, when the slider is at 256 only image 02 is visible and when the slider is 512 only image 03 is visible.
I can work the alpha values out just fine by doing this...
CurrentAlpha# = 1.0
IK Set Image Brightness Image01, 1.0, 1.0, 1.0, 1.0
IK Paste Image On Image Image01, Final, 0, 0
IK Set Image Brightness Image02, 1.0, 1.0, 1.0, Clamp#( CurrentAlpha#, 0.0, 1.0 )
IK Paste Image On Image Image02, Final, 0, 0
IK Set Image Brightness Image03, 1.0, 1.0, 1.0, Clamp#( CurrentAlpha# - 1.0, 0.0, 1.0 )
IK Paste Image On Image Image03, Final, 0, 0
Paste Image Final, 0, 0 : ` This is just an example.
End
Function Clamp#( Value#, Minimum#, Maximum# )
If Value# < Minimum# Then Value# = Minimum#
If Value# > Maximum# Then Value# = Maximum#
EndFunction Value#
But when I use the Set Image brightness copmmand the image isn't being displayed.
I've tried with the alpha being 0.0 - 1.0, and also 0.0 - 255.0 with no effect.
Have I missed something or am I doing it wrong?
I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]