A friend of mine is creating a mint object and asked me about how I would approach creating the Life Preserver/Mint style texture.
I've done similar things before with striping using a Wave Texture & a ColorRamp node, looking like this:
To go for the life preserver effect I've used a gradient texture instead. This is the setup I have right now:
I'd really like to use math to control the number of stripes instead of playing with the Color Ramp values directly. In the horizontal stripe setup I was able to control the amount of stripes by using the location of an empty.
If I do need to use points on the ColorRamp, thats fine, but its pretty awkward to divide 1.0 by the amount of stripes I want. (in my case I want 6, so I need 12 points on the graph).
In essence, I want to have a robust way of creating these rings via the node editor and have the rings have be the same size.