- if fill:
- cr.rectangle(0, 0, width, height)
- r, g, b, a = self.color_to_rgba(fill_color)
- cr.set_source_rgba(r, g, b, a)
- cr.fill()
-
- if stroke:
- cr.rectangle(0, 0, width, height)
- r, g, b, a = self.color_to_rgba(stroke_color)
- cr.set_source_rgba(r, g, b, a)
- cr.stroke()
- self.draw_dot(0, 0, 3.0, stroke_color)
-
- cr.restore()
-
- def draw_rect(self, x, y, width, height, fill=True, fill_color=[1, 1, 1, 0.8],
+ def draw_rect(self, x, y, width, height, theta=0, fill=True, fill_color=[1, 1, 1, 0.8],