Opposite/Hypotenuse = Sine = red Adjacent/Hypotenuse = Cosine = green Opposite/Adjacent = Tangent = blue When the code is finished, you can see how tangent divides the screen into to 4 parts. The line intercepts the points of sin and cos when they are equal to 1, 0, and -1. But in this case, 100, 0, and -100.