Get the App
SLTechnology News&Howtos  ›  Development  › 

How to draw lovely Doraemon by Python+Turtle

Shulou Source: shulou.com Published: 2022-06-01 05:02:28 10月31日 Update

Editor to share with you Python+Turtle how to draw lovely Doraemon, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

1 Doraemon for her

A Doraemon made her happy for a long time. I am also very happy. I sent a solid model yesterday, and today I use Python code to get another one for her.

Doraemon (Japanese: English: Doraemon), translated as robot cat, the cat robot in the Japanese cartoon Doraemon and its derivative works, the protagonist of this work. The name means gongs (gongs) and Wei men (gongs).

Doraemon has a four-dimensional pocket on his belly, which leads directly to the fourth-dimensional space, and no matter how many things can fit. Afraid of rats. His usual duty is to take care of Nobita Nobi.

2 fleeting

Although the geese have no trace, the years are silent, but the fleeting time has no trace in every corner of life, always rippling in my distant heart, miss very much. Let it stay on the beach of memory, mix with the clam and turn into the most beautiful pearl.

Her halo

The sky is blue and it's your main color.

I gave you a red scarf with a golden bell.

Finally hug you as soft as a marshmallow Doraemon

Please put my most precious things

Put it all in your treasure bag.

3 Python code implementation

Import turtle as t # t.speed (3) t.title ('my little princess Doraemon') t.pensize (8) t.hideturtle () t.screensize (500,500, bg='white') # = Cat face = t.fillcolor ('# 00A1E8') t.begin_fill () t.circle () t.end_fill (3) t.fillcolor ('white') t.begin_fill () t.circle (100) t.end_fill () t.pu () t.home () t.goto (0 T.pd () t.pensize (4) t.fillcolor ("# EA0014") t.begin_fill () t.circle (18) t.end_fill () t.pu () t.goto (7,155) t.pensize (2) t.color ('white',' white') t.pd () t.begin_fill () t.circle (4) t.end_fill () t.pu () t.goto (- 30,160) t.pensize (4) t.pd () t.color ('black' 'white') t.begin_fill () a = 0.4for i in range: if 0

Tags: Doora article lovely fleeting things code content pockets machines white foals bells step length the most beautiful precious soft not so master hero halo time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Information macOS Shulou Tech Info Apple