reflection — Phatch v0.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- actions »

# reflection

class `actions.reflection.` `Action`(**options)

  Bases: `core.models.Action`

  Drops a reflection

  `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, depth, opacity, background_color, background_opacity, scale_method, gap=0, scale_reflection=False, blur_reflection=False, cache=None)
  `values`(info)

`actions.reflection.` `gradient_mask`(size, opacity, cache)

`actions.reflection.` `gradient_vector`(size, opacity, cache)

`actions.reflection.` `init`()

`actions.reflection.` `reflect`(image, depth, opacity, background_color, background_opacity, scale_method, gap=0, scale_reflection=False, blur_reflection=False, cache=None)

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- actions »