Used sin function to compute colour for health light