skip to Main Content

Last week I saw a video that teaches to use a python library for making an avatar logo. And today I wanted to share the video and its results.

Firstly we should install GTK for windows

And later I installed the Github repo for python

pip install py-avataaars

And I tried almost the whole of the styles for the logo and I choose the best options for me.

My Code :

import py_avataaars as pa
avatar = pa.PyAvataaar(
    style=pa.AvatarStyle.CIRCLE,
    skin_color=pa.SkinColor.LIGHT,
    hair_color=pa.HairColor.BROWN_DARK,
    facial_hair_type=pa.FacialHairType.BEARD_LIGHT,
    facial_hair_color=pa.FacialHairColor.BROWN_DARK,
    top_type=pa.TopType.SHORT_HAIR_SHORT_CURLY,
    mouth_type=pa.MouthType.SMILE,
    eye_type=pa.EyesType.DEFAULT,
    eyebrow_type=pa.EyebrowType.DEFAULT,
    nose_type=pa.NoseType.DEFAULT,
    accessories_type=pa.AccessoriesType.PRESCRIPTION_02,
    clothe_type=pa.ClotheType.HOODIE,
    clothe_color=pa.ClotheColor.BLACK,
    )

avatar.render_png_file('fth.png')

And  Here My avatar;

 

Also, you can examine the video and GitHub repo and you can create an avatar for yourself

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top