Okay, here is a version suitable for both BlitzPlus and Blitz3D.
Graphics 800, 600, 16, 1 SetBuffer BackBuffer() ; needed for Blitz3D, automatic in BlitzPlus picta=LoadImage( "whatever.bmp" ) ResizeImage picta, 800, 600 DrawImage picta, 0, 0 Flip While Not KeyDown( 1 ) timer# = ( timer# + 0.2 ) Mod 360.0 aa# = Abs( Cos( timer ) ) ZetGamma( aa ) UpdateGamma Wend Function ZetGamma( ax# ) For a = 0 To 255 b = a * ax SetGamma a,a,a, b,b,b Next End Function