The problem up front:
How to convert a steadily increasing number into a resetting, repeating sequence.
I am creating an animation in Vue 7. I have a grayscale image map in which black = -1 and white = 1. It can be attched to any output node to produce varying color, transparency etc.
It is possible to connect various nodes that have mathematical functions to alter the output from any given input. Time is a possible input variable and is measured in seconds using whole integers. i.e. after 100 seconds the time value will be 100.
I want to create a function that converts time into a progression from -1 through to 1, only to begin again at -1 and repeat indefininitely. So no matter how large the time input the output will always be between -1 and 1.
I hope this is not to much of an odd request and not in the wrong place! I'm not really a mathematician so was unsure exactly what this is classified as.
Thanks in advance. Rob