How to Change a Sine Wave Shader Shape?

Hello guys
I’ve found a sine wave shader from shadertoy and decided to convert it to sparksl but since it was originally made for the flags, the waves behave differently. like it is a small wave at start but gets greater and greater as it ages. I wanted to know is it possible to change the wave shape? like make it equal in both start and end? like the bottom wave in the picture.

Sine Wave (607 Bytes)

If you just want a sine wave, you can do something like sin(std::getCurrentTime());

I don’t remember the exact syntax for getting the current time in Spark SL, but that’s the gist of it.

Related, here’s a collection of shaping functions that you might find useful.

And an article on shaping functions, from the book of shaders:

These are great and useful information. Thanks