Angle gradient in canvas

I’m looking for a code that permits to have this effect on a canvas’ stroke. I’ve already got an animated circular stroke, I only need to get the ANGLE gradient, not linear and not radial. I’ve got …