styles
styles
¶
Attributes¶
ANIMATION_CLASSES = {LinkAnimationStyle.PULSE: PulseAnimation, LinkAnimationStyle.GLOW: GlowAnimation}
module-attribute
¶
Animation class of every style.
Classes¶
Functions¶
create_animation(style)
¶
Create the animation of a style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
style
|
LinkAnimationStyle
|
style of the animation. |
required |
Returns:
| Type | Description |
|---|---|
LinkAnimation
|
new animation. |
Source code in src/nyx/editor/graphics/animation/styles.py
13 14 15 16 17 18 19 20 21 22 | |