MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / draw_box

Function draw_box

25_vector_graphics/python/cairodraw.py:21–31  ·  view source on GitHub ↗
(context, x, y, x2, y2)

Source from the content-addressed store, hash-verified

19
20
21def draw_box(context, x, y, x2, y2):
22 context.set_source_rgb(0.258, 0.525, 0.956)
23 context.new_path()
24 context.move_to(x, y)
25 context.line_to(x2, y)
26 context.line_to(x, y2)
27 context.move_to(x2, y2)
28 context.line_to(x2, y)
29 context.line_to(x, y2)
30 context.close_path()
31 context.fill()
32
33
34if __name__ == "__main__":

Callers 1

cairodraw.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected