@classmethod
def apply_to(cls, img, color, only_grey_pixels):
    """
            basically a static method for hueing an image.
        :param img: input image
        :param color: arbg color
        :param only_grey_pixels: to be used in conjunction with ItemData -> partial_hue
        :return: hued image
        """
    width = img.size[0]
    height = img.size[1]
    for y in range(height):
        for x in range(width):
            col = img.getpixel((x, y))
            if col == (0, 0, 0, 0):
                continue
            if col[0] == col[1] == col[2] or not only_grey_pixels:
                img.putpixel((x, y), color)
    return img
