Expression Library

Pulse

Applied to the scale property generates a continuous throbbing or pulsing effect.

Code Sample

Hover over the code and click the copy button.

				
					freq = 2;
amp = 15;
x = amp*Math.sin(freq*time*Math.PI*2);
value + [x,1] // use [0,x] to affect y value only, or enter x in both dimensions for uniform scaling