title: Color filling a shape using Turtle in Java
body: <p>I've been looking for a while now at how to fill a shape with a certain color using Turtle in java.
  Let's say I have something like this: </p>
  
  <pre><code>private static void test(Turtle t1) {
  
      for (int count = 0; count &lt; 4; count++) {
          t1.fd(100);
          t1.right(90);
      }
  
  }
  </code></pre>
  
  <p>Where <code>t1</code> is: <code>Turtle t1 = new Turtle();</code> </p>
  
  <p>The code above creates a simple rectangle, and what I'm trying to figure out, is how to fill that rectangle with color (red, green, blue) . I've looked at the documentation in this <a href="http://sites.asmsa.org/java-turtle/documentation" rel="nofollow noreferrer">link</a> But so far I couldn't figure it out.</p>
  
  <p>Thanks.</p>