code: def set_draw_color(self, r,g=-1,b=-1):
          "Set color for all stroking operations"
          if((r==0 and g==0 and b==0) or g==-1):
              self.draw_color=sprintf('%.3f G',r/255.0)
          else:
              self.draw_color=sprintf('%.3f %.3f %.3f RG',r/255.0,g/255.0,b/255.0)
          if(self.page>0):
              self._out(self.draw_colorf set_draw_color(self, r,g=-1,b=-1):
          "Set color for all stroking operations"
          if((r==0 and g==0 and b==0) or g==-1):
              self.draw_color=sprintf('%.3f G',r/255.0)
          else:
              self.draw_color=sprintf('%.3f %.3f %.3f RG',r/255.0,g/255.0,b/255.0)
          if(self.page>0):
              self._out(self.draw_color)
docs: Set color for all stroking operations