title: How to keep rotating a FontAwesome-icon in Processing?
body: <p>I'd like to keep rotating a icon from FontAwesome in Processing java. (the fa-spin icon to be precisely.) (\f110)</p>
  
  <p>Link to effect: <a href="http://fontawesome.io/examples/#animated" rel="nofollow noreferrer">Example</a></p>
  
  <h3>My create-function for an icon</h3>
  
  <pre><code>public void drawIcon(int size, String icon, float custom_height) {
  
      font = createFont("fontawesome-webfont.ttf",size);
      textFont(font);
      if(icon != null &amp;&amp; !icon.trim().isEmpty()) {
          text(icon, width / 2, height / custom_height);
      }
  
  }
  </code></pre>
  
  <h3>Initialization object + called method</h3>
  
  <p>To create my icon, I initialized an object and called my function in the draw()-method  : </p>
  
  <pre><code>Content content = new Content(); // content object
  PFont font;  // font object
  
  public void draw() {
       content.drawIcon(46, "\uf110", 7);
  }
  </code></pre>
  
  <p>I found the rotate/translate methods from the documentation, but can't figure out the correct parameters for rotating this icon 360 degrees continiously.</p>
  
  <h3>Attempt</h3>
  
  <pre><code>public void draw() {
       rotate(degrees(360));
       content.drawIcon(46, "\uf110", 7);
  }
  </code></pre>