// Inverts the current image. Does not work with float // images because the ~ (bitwise complement) // operator only works with integers. requires("1.29m"); w = getWidth(); h = getHeight(); start = getTime(); if (bitDepth==8) mask = 255; else if (bitDepth==16) mask = 65535; else mask = -1; for (y=0; y