glow

class janim.components.glow.Cmpt_Glow(*args, **kwargs)

Bases: Cmpt_Rgba, Generic

Glow component

DEFAULT_RGBA_ARRAY = <janim.utils.data.Array object>
copy() Self
become(other: Cmpt_Glow) Self
not_changed(other: Cmpt_Glow) bool
interpolate(cmpt1: Cmpt_Glow, cmpt2: Cmpt_Glow, alpha: float, *, path_func=None) None
set(color: JAnimColor | None = None, alpha: Alpha | None = None, size: float | None = None, *, root_only: bool = False) Self
  • color represents the RGB color data passed in, a single color (supports formats like '#FF0000', 'red', [1, 0, 0.5])

  • alpha represents the transparency data passed in (1 means opaque, 0 means fully transparent)

  • size represents the size of the glow

  • By default, all descendant items will also be set to the specified properties; passing root_only=True will only set the root item’s properties

Special parameter passing:

  • When color is four-component RGBA color data, it represents both color and alpha, so the alpha parameter cannot be passed separately

get_size() float