background-gradient[similarity]: Correct calculation in endPointsFromAngle(). Extract debugDraw() method.