This uses COS and SIN which gives a fade in and fade out effect. Press Space to change DEMO Press Q to view Graph of: Abs of (cos (timer)) in rads Press E to view Graph of: cos (timer) in rads Press W to view Graph of: sin (timer) in rads Press R to view Graph of: sin and cos of the timer at the same time