Okay, a color matrix... Kind of handy you'd like to think, but what does it do? :)
EvaluateSystemScript("time.js");
function ColorMatrixTest()
{
var original_surface = GrabSurface(0, 0, GetScreenWidth(), GetScreenHeight());
var grayify_matrix = CreateColorMatrix(0, 85, 85, 85, 0, 85, 85, 85, 0, 85, 85, 85);
var swap_red_and_blue_matrix = CreateColorMatrix(0, 0, 0, 255, 0, 0, 255, 0, 0, 255, 0, 0);
var surfare = original_surface.clone();
surfare.applyColorFX(0, 0, surf.width, surf.height, grayify_matrix);
surfare.blit(0,0);
FlipScreen();
Delay(1000);
surfare = original_surface.clone();
surfare.applyColorFX(0, 0, surf.width, surf.height, swap_red_and_blue_matrix);
surfare.blit(0,0);
FlipScreen();
Delay(1000);
}
That's it folks, enjoy.
|