You can also use mesh gradient tool. Check out how it works on youtube.
Mesh divides your vector object into a ...mesh, than you can control each point and edit it's colors. You'll get a hang of it...