(6.0.0 Shader) pulse - JujuAdams/ScribbleOldDocs GitHub Wiki
vec2 pulse(vec2 position, vec2 centre, float characterIndex, float scale_, float frequency)
Returns: The position after the application of a pulse effect
Datatype | Name | Purpose |
---|---|---|
vec2 |
position |
Position to scale |
vec2 |
centre |
Centre of scaling, analogous to the "origin" in GameMaker's sprites |
float |
characterIndex |
Index for this character |
float |
scale_ |
Maximum scaling factor for the pulse effect |
float |
frequency |
The period of the pulse effect. Higher values cause characters to pulse more |