import
cairo
def
arrow(context, x, y, width, height, a, b):
context.move_to(x, y
+
b)
context.line_to(x, y
+
height
-
b)
context.line_to(x
+
a, y
+
height
-
b)
context.line_to(x
+
a, y
+
height)
context.line_to(x
+
width, y
+
height
/
2
)
context.line_to(x
+
a, y)
context.line_to(x
+
a, y
+
b)
context.close_path()
with cairo.SVGSurface(
"geek95.svg"
,
700
,
700
) as surface:
context
=
cairo.Context(surface)
context.set_source_rgb(
0
,
0
,
0.5
)
arrow(context,
20
,
20
,
150
,
150
,
75
,
50
)
context.fill()
arrow(context,
220
,
20
,
150
,
150
,
50
,
30
)
context.fill()
arrow(context,
420
,
20
,
150
,
150
,
25
,
20
)
context.fill()
arrow(context,
70
,
220
,
75
,
150
,
0
,
50
)
context.fill()
print
(
"File Saved"
)