title: Drawing filled circle using trigonometry
body: <p>Is there any function I can create in order to draw a filled circle using the base drawing functions:</p>
  
  <ul>
  <li><code>putpixel(x, y);</code></li>
  <li><code>lineto(x, y);</code></li>
  </ul>
  
  <p>?</p>
  
  <hr>
  
  <p>Note that it must use trigonometric functions (videlicet <code>sin</code>, <code>cos</code> etc..) <strong>so I can easily turn it into a hexagon and even further - a square or another type of polygon.</strong>
  <a href="https://i.stack.imgur.com/xwefU.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xwefU.gif" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>And finally, not necessarily but always appreciated if it isn't very slow in drawing (one loop should be enough I presume) and even more not necessarily, but always even more appreciated if it isn't too complex and/or consisting of more lines than needed for a lightweight life.</p>