<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -152,24 +152,38 @@ module Prawn
         add_content(&quot;%.3f %.3f %.3f %.3f re&quot; % [ x, y, width, height ])      
       end 
       
+      # Sets the fill color.  6 digit HTML color codes are used.
+      # 
+      #   pdf.fill_color &quot;f0ffc1&quot;
+      #
       def fill_color(color)     
         r,g,b = [color[0..1], color[2..3], color[4..5]].map { |e| e.to_i(16) }       
         add_content &quot;%.3f %.3f %.3f rg&quot; %  [r / 255.0, g / 255.0, b / 255.0]
       end                                                                      
       
+      # Sets the line stroking color.  6 digit HTML color codes are used.
+      #
+      #   pdf.stroke_color &quot;cc2fde&quot;
+      #
       def stroke_color(color) 
         r,g,b = [color[0..1], color[2..3], color[4..5]].map { |e| e.to_i(16) }     
         add_content &quot;%.3f %.3f %.3f RG&quot; %  [r / 255.0, g / 255.0, b / 255.0]   
       end
       
-      def stroke #:nodoc:
+      # Strokes and closes the current path.
+      def stroke
         add_content &quot;S&quot;
       end              
       
-      def fill #:nodoc:
+      # Fills, strokes, and closes the current path.
+      def fill 
         add_content &quot;b&quot; 
       end     
       
+      # Provides the following shortcuts:
+      #
+      #    stroke_some_method(*args) #=&gt; some_method(*args); stroke
+      #    fill_some_method(*args) #=&gt; some_method(*args); fill
       def method_missing(id,*args,&amp;block)
         case(id.to_s) 
         when /^stroke_(.*)/
@@ -183,4 +197,4 @@ module Prawn
                                     
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/prawn/document/graphics.rb</filename>
    </modified>
    <modified>
      <diff>@@ -160,6 +160,38 @@ describe &quot;When drawing a circle&quot; do
   end
 end    
 
+class ColorObserver 
+  attr_reader :stroke_color, :fill_color
+
+  def set_rgb_color_for_stroking(*params)
+    @stroke_color = params
+  end
+
+  def set_rgb_color_for_nonstroking(*params)
+    @fill_color = params
+  end
+end
+
+describe &quot;When setting colors&quot; do
+
+  before(:each) { create_pdf }
+
+  it &quot;should set stroke colors&quot; do
+    @pdf.stroke_color &quot;ffcccc&quot;
+    colors = observer(ColorObserver)
+    # 100% red, 80% green, 80% blue
+    colors.stroke_color.should == [1.0, 0.8, 0.8]
+  end
+
+  it &quot;should set fill colors&quot; do
+    @pdf.fill_color &quot;ccff00&quot;
+    colors = observer(ColorObserver)
+    # 80% red, 100% green, 0% blue
+    colors.fill_color.should == [0.8,1.0,0]
+  end
+
+end
+
 describe &quot;When using painting shortcuts&quot; do
   before(:each) { create_pdf }
  
@@ -181,4 +213,4 @@ describe &quot;When using painting shortcuts&quot; do
     lambda { @pdf.i_have_a_pretty_girlfriend_named_jia }.
       should raise_error(NoMethodError) 
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/graphics_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>78e15be37e8eb0ef3d03f5947146e27e91a12150</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>user@eeepc-gregorybr.hsd1.ct.comcast.net</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/4a4facce347cb1402eba1281a5ce1cd800a4a149</url>
  <id>4a4facce347cb1402eba1281a5ce1cd800a4a149</id>
  <committed-date>2008-05-03T09:21:10-07:00</committed-date>
  <authored-date>2008-05-03T09:21:10-07:00</authored-date>
  <message>Hadean prawn is ready.</message>
  <tree>b994530bac5b8e97f17f14d36a3f81e0cea5583a</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>user@eeepc-gregorybr.hsd1.ct.comcast.net</email>
  </committer>
</commit>
