I’ve seen some posts about peppa Pig drawing in Python. Who is the standard of social people, of course, is a hair dryer peppa Pig tattoo. I tried to draw the pig, but I felt it was very difficult to draw the eyes. The pig’s head was not three-dimensional, and if the eyes were not properly drawn, the whole JU head would have no god and spirituality.

Draw Peppa Pig using Python

Let’s start with a pig’s head

Basic idea:

Choose palette size, set brush color, thickness and position.

Painting process: nose — > — — — — > > ear eyes — — — — > body — – > > mouth hands — — — — > > tail Done brought lunch box

Python Modules used:

Turtle, Turtle is python’s built-in module, called turtle, which provides some simple drawing tools.

Turtle module official documentation: docs.python.org/3.5/library… Learn turtle and get started.

PIP install turtle is a turtle module. If you have installed the PIP tool before, run the CMD command as admin and enter PIP install turtle to download the Turtle module

If PIP is not installed, go to install PIP first, click portal blog.csdn.net/weixin_3966…

Import python shell successfully after installation

Coding

I am not good at digging Upload coding. If you don’t want to type it, you can directly go to my Github to pull it

Making address:github.com/JesusOfSurb…

File name: gangsta-peggy.py

Let’s start with a drawing: