class documentation
class DiamondDrawer(ShapeDrawer):
Static class which draws diamonds (i.e. rhombuses)
Static Method | draw |
Draws a rhombus on the Cairo context without stroking or filling it. |
Static Method | intersection |
Determines where the rhombus centered at (center_x, center_y) intersects with a line drawn from (source_x, source_y) to (center_x, center_y). |
Class Variable | names |
Undocumented |
@staticmethod
def draw_path(ctx, center_x, center_y, width, height=None):
def draw_path(ctx, center_x, center_y, width, height=None):
Draws a rhombus on the Cairo context without stroking or filling it.
See Also | |
ShapeDrawer.draw_path |