pypbr.blending.BlendFactory

class pypbr.blending.BlendFactory[source]

Bases: object

Factory class to instantiate blending methods.

__init__()

Methods

__init__()

get_blend_method(method_name, **kwargs)

Factory method to get a blending method instance.

static get_blend_method(method_name: str, **kwargs) BlendMethod[source]

Factory method to get a blending method instance.

Parameters:
  • method_name (str) – Name of the blending method (‘mask’, ‘height’, ‘properties’, ‘gradient’).

  • **kwargs – Parameters for the blending method.

Returns:

An instance of a BlendMethod subclass.

Return type:

BlendMethod

Raises:

ValueError – If an unknown blending method is specified.