// // EFP_Checks.C // // $Id: EFP_Checks.C,v 1.4 1998/10/14 21:25:57 mmp Exp $ // #include "EF.h" // pluginInit() must have C linkage for the effects system to find it. extern "C" { void pluginInit(EF_PluginOptions *opt); } static void doChecks(EF_Image *image, EF_Image *outimage, float v) { int x,y; v=v+.01; for (y=0;yySize;y++) { for (x=0;xxSize;x++) { int val= (int)((x/(int)(v*100))+(y/(int)(v*100)))%2; RED(EF_ImageXY(outimage,x,y))=val*50; GREEN(EF_ImageXY(outimage,x,y))=val*50; BLUE(EF_ImageXY(outimage,x,y))=val*200; ALPHA(EF_ImageXY(outimage,x,y))=val*255; } } } void pluginInit(EF_PluginOptions *options) { options->applyOne=doChecks; strcpy(options->name,"Checks"); }