Skip to content

Commit 4411084

Browse files
authored
Add files via upload
1 parent feca706 commit 4411084

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import python_avatars as pa
2+
3+
#customising avtaar as per requirement
4+
pa.Avatar(
5+
#selecting the back ground shape
6+
style=pa.AvatarStyle.CIRCLE,
7+
#selecting the face parts
8+
eyebrows=pa.EyebrowType.DEFAULT_NATURAL,
9+
eyes=pa.EyeType.HEART,
10+
nose=pa.NoseType.DEFAULT,
11+
mouth=pa.MouthType.EATING,
12+
facial_hair=pa.FacialHairType.NONE,
13+
#selecting bg shape colour
14+
background_color='#FF00FF',
15+
# Choose graphic shirt
16+
clothing=pa.ClothingType.GRAPHIC_SHIRT,
17+
clothing_color=pa.ClothingColor.GRAY_02,
18+
# Important to choose this as shirt_graphic, otherwise shirt_text will be ignored
19+
shirt_graphic=pa.ClothingGraphic.CUSTOM_TEXT,
20+
shirt_text='Chess'
21+
22+
#finally saving the avtaar
23+
).render("avatar_text.svg")
24+
25+

0 commit comments

Comments
 (0)