- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathheart.py
More file actions
Latest commit
22 lines (17 loc) · 388 Bytes
/
Copy pathheart.py
File metadata and controls
22 lines (17 loc) · 388 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
importpixie
image=pixie.Image(200, 200)
image.fill(pixie.Color(1, 1, 1, 1))
path=pixie.parse_path(
"""
M 20 60
A 40 40 90 0 1 100 60
A 40 40 90 0 1 180 60
Q 180 120 100 180
Q 20 120 20 60
z
"""
)
paint=pixie.Paint(pixie.SOLID_PAINT)
paint.color=pixie.parse_color("#FC427B")
image.fill_path(path, paint)
image.write_file("examples/heart.png")