The simples way to run a custom script is to click on "Custom Operation" in the "Effect" menu and replace the script with the following one:
var sizeX = RasterImage.sizeX;
var sizeY = RasterImage.sizeY;
var color = 0xff0000ff;
for(x=0; x<sizeX; x++)
for(y=0; y<sizeY; y++)
if ((x+y)&1)
RasterImage.SetPixel(x, y, 0, 0, color);
Note the color variable on 3rd line. By changing it, you may select different color. The color is in hexadecimal ABGR encoding, if you are not sure what that means, use the following line, but with actual color values (in range 0-255):
var color = (ALPHA<<24)|(BLUE<<16)|(GREEN<<8)|(RED);
There are other ways how to define and run scripts, but this is the easiest one.