Hi all.

I'm trying to write an equation using the Pixel Processor for an angular gradient with an arbitrary center, therefore I imagine using the atan2 function at some point I guess.

I have as inputs the coordinates of the Center and of 2 points A and B (where B is simply A mirrored along the y axis), and what I want to obtain specifically is a angular gradient that is fully black at point A and white at point B, so some form of precise clamping (the rest of the pie can be black). So far I had no luck with this.

Is there anyone who can offer some guidance?

Thanks a lot!

Paolo

I'm trying to write an equation using the Pixel Processor for an angular gradient with an arbitrary center, therefore I imagine using the atan2 function at some point I guess.

I have as inputs the coordinates of the Center and of 2 points A and B (where B is simply A mirrored along the y axis), and what I want to obtain specifically is a angular gradient that is fully black at point A and white at point B, so some form of precise clamping (the rest of the pie can be black). So far I had no luck with this.

Is there anyone who can offer some guidance?

Thanks a lot!

Paolo