Using sin() function

Hi, sorry for disturbing, Can I achieve this effect with cos() function ?