public Texture inv() // inverts the texture { for (var i = width * height - 1; i >= 0; i--) { pixel[i] = ColorUtility.inv(pixel[i]); } return(this); }