movis.effect.style.DropShadow#

class movis.effect.style.DropShadow(radius: float = 0.0, offset: float = 0.0, angle: float = 45.0, color: tuple[int, int, int] | str = (0, 0, 0), opacity: float = 0.5)[source]#

Applies drop shadow to the input image.

Args:
radius:

Radius of Gaussian kernel.

offset:

Offset of the shadow in pixels.

angle:

Angle of the shadow in degrees.

color:

Color of the shadow. It can be specified as a tuple of RGB values or a string of color name.

opacity:

Opacity of the shadow in the range [0, 1].

Animatable Attributes:

radius offset angle color opacity

Methods

get_key(time: float) tuple[Hashable, ...]#

Returns a tuple of hashable values that represent the state of the instance at a given time.

Attributes

attributes

A dictionary of attributes that are used to generate cache keys.