@check_page<EOL><INDENT>def rect(self, x,y,w,h,style='<STR_LIT>'):<DEDENT>
if(style=='<STR_LIT:F>'):<EOL><INDENT>op='<STR_LIT:f>'<EOL><DEDENT>elif(style=='<STR_LIT>' or style=='<STR_LIT>'):<EOL><INDENT>op='<STR_LIT:B>'<EOL><DEDENT>else:<EOL><INDENT>op='<STR_LIT:S>'<EOL><DEDENT>self._out(sprintf('<STR_LIT>',x*self.k,(self.h-y)*self.k,w*self.k,-h*self.k,op))<EOL>
Draw a rectangle