Here you can find the source of invertColor(Color c)
public static Color invertColor(Color c)
//package com.java2s; //License from project: LGPL import java.awt.*; public class Main { public static Color invertColor(Color c) { return new Color(255 - c.getRed(), 255 - c.getGreen(), 255 - c.getBlue()); }//from www .ja v a 2 s.c om }