public static ColorPixelType colorPixelTypeFor(Color color, int id) {
        ColorPixelType type = colorPixels.get(color);
        if (type == null) {
            type = new ColorPixelType(id, color);
            colorPixels.put(color, type);
        }
        return type;
    }