Mysterious Trig Function

Geometry Level 3

Given the graph above of $$y = \color{red}{A}\sin(x)+\color{blue}{B}\cos(x)$$ for integers $$\color{red}{A}$$ and $$\color{blue}{B},$$ find $$\color{red}{A}-\color{blue}{B}.$$

×