color_to_alpha

class actions.color_to_alpha.Action(**options)

Bases: core.models.Action

Make selected color transparent

get_relevant_field_labels()

If this method is present, Phatch will only show relevant fields.

Returns:list of the field labels which are relevant
Return type:list of strings

Note

It is very important that the list of labels has EXACTLY the same order as defined in the interface method.

static init()
interface(fields)
static pil(image, color_value=None, select_color_by=None)
actions.color_to_alpha.color_to_alpha(image, color_value=None, select_color_by=None)
actions.color_to_alpha.difference1(source, color)
When source is bigger than color
actions.color_to_alpha.difference2(source, color)
When color is bigger than source
actions.color_to_alpha.init()

Previous topic

canvas

Next topic

colorize