@staticmethod
def hex_to_int(value):
    """
        Takes a hex string (such as #00ff00) and returns its integer
        equivalent

        eg: #00000f becomes : 15

        """
    return int(value.lstrip('#'), 16)
