Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does Python use Turtle to draw Doraemon and Piggy Page

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 250

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report