In this tutorial, we will be learning to draw the famous cartoon character Shinchan with Python Turtle. By the end of this tutorial, you will have cleared your concept regarding the basics of python, the basics of the turtle module, and the intermediate of the turtle module. First, we will see how to code our cartoon and see the code itself.
Explanation:
First Part:
First, import everything from the turtle module. Then, set a turtle screen into a variable “s”. Set the screen size to (700, 1000) and the speed to 5.
Define a function myPosition() with the parameters “x, y”. Here, pick the pen up as we are not ready to draw. Go to the position as in (x, y). Put the pen down. Set the pen size to 2.
Second Part:
Define a function named ankur() for the shorts of our drawing. Here, set the fill color as ‘#ffec40’. Begin the fill. Now, move the turtle right at 25 units, forward at 20, right at 45, and again forward at 20 units. Move the turtle left at a value of 70 units and again forward at 90 units. Likewise, move the turtle left at 95 units, forward at 90, left at 95, forward at 75, left 85, and again forward at 175 units. Similarly, move it left at 85 units, forward at 75, and as in the code. End the fill.
Define another function named leftLeg(). Here, set the position to (-39, -25). Set the fill color as ‘#ffd699’. Begin the fill. Move the turtle right at 89 degrees, forward at 25, right at 90, and forward at 50. Likewise, move the turtle right at 90 units, forward at 20, right at 85, and again forward at 50 units. End the fill.
Define other functions for different body parts and. You can see that the most used functions and methods are forward, left, right, begin_fill(), fillcolor(), and endfill().
Third Part (Assemble the parts):
Going on with defining and implying all the function, now, create another one named allLegs(). Inside this function, call all the functions that are associated with drawing the parts of the legs of the cartoon. The functions are : leftLeg(), leftSock(), leftShoe(), rightLeg(), rightSock(), rightShoe().
Likewise, create a function named allHands that assembles the parts of the hands of the cartoon. The functions are: rightHand(), leftHand(), myBis() and leftHand2().
Similarly, create another function named allEyebrows(). Here, call the
myEyebrow() function with the arguments (-8, 300), right at 90 units, again myEyebrow with the arguments (72, 300), myEyelid() with the arguments (-8, 270), left with 15 units, and at last myEyelid() with (68, 265).
Now, create a function allEyes() and assemble myallEyes1(17, 275) and myallEyes2(95, 270).
Last Part:
Here, call all the functions that were assembled in the above part. Here call the function: ankur(), allLegs()myShirt(), myHead() ,allHands(), myMouth(), allEyebrows(), allEyes().
After it is done, hide the turtle with the method ht() and finish the code with the done() method
Code: See above video or contract me on mail
Thank You for reading till the end. If you have any queries, comment it down. We also have a complete Beginner Guide to Python Turtle on this website. Note: The above program was coded on Python 2 version. So, if you find your code editor directing an error, do not worry, it will run fine.
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use.
Instagram ID:- / _.techno_hacker._
Mx Taka Tak:- vibhasmahaldar
Twitter ID :- / vibhasmahaldar
Facebook ID:- / vibhas.mahaldar
You can visit on / @techno_hacker .
Keep Learning, Keep Coding.
#python
#youtube
#shinchan
#pythonturtle
#howtodrawshinchan
#shinchansourcecode
#youtubeislife
#subscriber
#youtubeguru
#howtodrawshinchanusingpython
#shinchanusingpython
#shinchanusingturtle
#turtlemodule
#youtubecontent
#newvideo
#subscribers
#youtubevideo
#newtechnology
#techtrends
#techgadgets
#google
#instagram
#meta
#etsy
#wikipedia
#doremon
#computerscience
#codelife
#womenintech
#webdevelopment
#webdev
#fullstackdeveloper
#money
#nocopyright
#technohacker
#codethink
#pycham
#vscode
#Acvians
#SpiderManNoWayHome
#idle
#marvel
#ai
#programming
#pythonprogramming
#artificialintelligencearts
#artificialintelligenceforhomeeiscomingsoon
#artificialintelligenceactors
#humansvsartificialintelligence
#artificialintelligenceinbusiness
#deeplearning
#ebay
#amazon
#html
#clanguage
#programmer
#fedx
#technologythesedays
#coder
#softwaredeveloper
#javascript
#coding
#artificialintelligenceonfleek
#extractofartificialintelligence
#artificialintelligenceiscoming
Chapters:
0:00 An into of project
0:53 Shinchan full code
12:04 OUTPUT
12:40 Subscribe
#stayhomestaysafe
Vibhas Mahaldar (Jai)
Techno Hacker
На этой странице сайта вы можете посмотреть видео онлайн How to draw Shinchan using Python | Turtle Module | длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Techno Hacker 19 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 387 раз и оно понравилось 17 зрителям. Приятного просмотра!