title: Calculating uv texture coords for a procedurally generated circle mesh
body: <p>I am trying to calculate the uv's for a mesh I generate in code. It's a very simple circle (2d)</p>
  
  <p><img src="https://i.stack.imgur.com/hkX0x.png" alt="enter image description here"></p>
  
  <p>and I want to texture it like follows</p>
  
  <p><img src="https://i.stack.imgur.com/5jRfv.png" alt="enter image description here"></p>
  
  <p>and using this code for the uvs</p>
  
  <pre><code>uvs[i] = new Vector2((verts[i].x+radius)/(radius), (verts[i].y+radius)/(2*radius));
  </code></pre>
  
  <p>and the center vertex is (0.5f,0.5f)</p>
  
  <p>but I am getting a distorted image. (EDIT PHOTO after help from answer but still stretched)</p>
  
  <p><img src="https://i.stack.imgur.com/SSWvI.png" alt="enter image description here"></p>
  
  <p>could anyone help here? Thanks in advance</p>