colored sin function