# Is there a way to get continuous radial/polar coordinates?

I'm not exactly sure if that's the right word for it, but basically, I want to be able to generate a gradient around a point like in my picture, but without the seam. the only thing I can think of like that is a color wheel, where it continuously loops around. My goal is to use a math -> compare node to make a triangle shape emanating from the center, one that you can change what direction it's facing and how wide it is. My problem is that with the gradient I have, the triangle shape disappears over the seam (I can better display what I mean in a video, I linked one in the comments). I want the triangle shape to be able to circle around in any direction indefinitely

.

• youtu.be/cL6n3W0pxsc my issue Oct 25, 2020 at 6:14
• Why don't you make use of the "rotation" parameter of your mapping-node? Oct 25, 2020 at 6:50
• im baffled that i didn't realize that Oct 25, 2020 at 7:01
• This actually solved more problems then i realized Oct 25, 2020 at 7:03

You could avoid doing the trigonometric stuff the Gradient > Radial node has already done for you, by, instead of avoiding the discontinuity at 0, using it as the start of your segment:

At its most primitive, the start-angle is measured out of 1, clockwise from 9 o'clock, and the segment is anticlockwise from there.This set-up works round the clock, through negative and >1 start-angles.

But I guess the disadvantage is the amount of plumbing you have to do to wrangle the interface into offering you center of arc, angle of arc, in degrees, clockwise from 12 o'clock:

(Maybe there are ways of cutting this down?) ... anyway, that's quite a few nodes to avoid one trig. calculation per shading point. Given modern kit, this is probably old-fashioned :)

Edit:

It may be better to forget the Radial altogether and roll-your-own:

.. which is added to the .blend:

• Hi Mr Bestt. Can you confirm that gradient node does not use trig things? Oct 25, 2020 at 10:09
• Hi, Clu.. oops!.. @lemon.. No, I'm suggesting the Gradient node does do trig, and you could avoid doing it again. On second thoughts, why not get rid of the Gradient altogether and do our own trig, and dot-product? I'll edit.. Oct 25, 2020 at 10:45