-
-
Notifications
You must be signed in to change notification settings - Fork 2
canvas articulated animations effects
Black Ram edited this page Jan 3, 2025
·
5 revisions
The articulated animations and effects are functions that can be used to perform complex animations and effects. They combine more primitive animations and effects (Tickers) to create a more complex animation or effect. For example, the Shake
function is an articulated animation that uses more MoveTicker
to create a shake effect.
The shakeEffect
function is an articulated animation that shakes the canvas element. The function uses more MoveTicker
to create the shake effect.
This function have the following parameters:
-
alias
: the alias of the canvas element -
props
: the properties of the shake effect. The properties are:-
speed
(Optional): is a number that represents the speed of the shake effect. -
shocksNumber
(Optional): the number of shocks. -
type
(Optional): the type of the shake effect. -
maximumShockSize
(Optional): the maximum size of the shock. -
speedProgression
(Optional): in case the shake needs to increase/decrease in speed over time, this property can be used. You can read more about it here. -
startOnlyIfHaveTexture
(Optional): is a boolean that represents if the animation should start only if the canvas component have a texture not empty. Iftrue
and the canvas component not have a texture, the animation will not edit thex
andy
properties, but will be executed. You can read more about it here.
-
-
priority
(Optional): the priority of the ticker