glow¶
- class janim.components.glow.Cmpt_Glow(*args, **kwargs)¶
Bases:
Cmpt_Rgba,GenericGlow component
- DEFAULT_RGBA_ARRAY = <janim.utils.data.Array object>¶
- copy() Self¶
- set(color: JAnimColor | None = None, alpha: Alpha | None = None, size: float | None = None, *, root_only: bool = False) Self¶
colorrepresents theRGBcolor data passed in, a single color (supports formats like'#FF0000','red',[1, 0, 0.5])alpharepresents the transparency data passed in (1means opaque,0means fully transparent)sizerepresents the size of the glowBy default, all descendant items will also be set to the specified properties; passing
root_only=Truewill only set the root item’s properties
Special parameter passing:
When
coloris four-componentRGBAcolor data, it represents bothcolorandalpha, so thealphaparameter cannot be passed separately
- get_size() float¶