Get the App
SLTechnology News&Howtos  ›  Development  › 

How does Python use Turtle to draw Doraemon and Piggy Page

Shulou Source: shulou.com Published: 2022-06-01 01:21:59 10月03日 Update

Today, I would like to share with you how Python uses Turtle to draw Doraemon and Page Pig. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.

1. Doraemon

As long as you tie your wish to a bamboo pole and ask the moon goddess, your wish will come true. I love that.

Doraemon's creation dates back to a deadline in 1969, when Fujiko Fujiko suddenly broke into a kitten's home. Although the deadline was coming soon, the author played with kittens and scratched lice for kittens for hours. By the time the author found that there was not enough time, it was too late to finish the manuscript. At this time, the author walked around like an ant on a hot pot and suddenly kicked his daughter's tumbler toy, so the author had an inspiration and combined the image of the cat with the tumbler to create Doraemon.

two。 Peppa Pig

Compared with the domestic "Pleasant Goat and Grey Wolf" and "Bear haunted", I hope that one day Pleasant Goat will be stewed by Grey Wolf and the bear will be shot with a bald head, and then sold directly to the zoo. (ha.) but this idea has never been realized, and I am a little lost. Let's watch Peggy Pig:

Since its premiere by E1 Kids on May 31, 2004, its cartoons have been shown in 180 regions around the world and have been broadcast for 6 seasons.

The Children's Channel of China Central Television is also very popular. Its minimalist animation style, humorous dialogue tone and educational storyline not only enable preschoolers to learn knowledge, but also enable children to develop good living habits and experience life from an early age, which is deeply loved by children all over the world and their parents.

3.Python code implementation (Doraemon)

Import turtle as tt.title (Doraemon) # t.speed (5) t.pensize (8) t.hideturtle () t.screensize (500,500 Bg='white') "" Cat face "" t.fillcolor ('# 00A1E8') t.begin_fill () t.circle () t.end_fill () t.pensize (3) t.fillcolor ('white') t.begin_fill () t.circle () 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: Do Page author knowledge article sea turtle kitten step size tumbler code global content animation children namely or channel study life aura Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information MySQL macOS Linux