title: Mapping polar coordinates to a color (RGB, etc.)
body: <p>Say I have 80 (or <code>n</code>) polar coordinates that are pretty evenly distributed across a circular area. I want a unique color for each polar coordinate.</p>
  
  <p>If you imagine a color wheel like this (though it could be a different transformation if you like), I'd like one of its colors given a polar coordinate.</p>
  
  <p><a href="https://i.stack.imgur.com/DnJXu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DnJXu.jpg" alt="color wheel"></a></p>
  
  <p>At first I was not using the actual polar coordinates, and just scaled one of the channels by some even stride, like RGB <code>(255, i * stride, 255)</code>. But now I'd like different colors from all over the spectrum (or at least more than a single color tone).</p>
  
  <p>I thought of just using an image of a color wheel and then sampling it, but that seems kind of weak. Isn't there a formula I could use to convert the polar coordinates to some assumed/generated RGB, HSV, or CMYK space?</p>
  
  <p>I'm working in Python 3, but I'm mostly interested in the formulas/algorithm. I'm not using any specific plotting API.</p>