def eval(self, color, percent): color = HTMLColors.get_color_shortest(color.value) return HTMLColors.lighten(color, int(percent.value or 0))