Change the API of the repeat mode

Also add more documentation
Add more radial gradient documentation