In this Python tutorial, we will learn How to Make a Dog Fae Using Python Turtle. In this tutorial, we split the code and explain How we can Make a Dog Face by using Python Turtle.
How to Make a Dog Face Using Python Turtle
Now start this project, firstly importing the turtle library such as import turtle as tur.
# How to Make a Dog Face Using Python Turtle
#Imported turtle
import turtle as tur
Github Link
Check this code in Repository from Github and you can also fork this code.
Github User Name: PythonT-Point
After importing the turtle library we are creating an object for this turtle and also give a title to the screen.
#set the turtle object
turt=tur.Turtle()
tur.title("Pythontpoint")
screen=turt.getscreen()
screen.bgcolor("light yellow")
After that, we are using the function to create the face of the dog. For creating the face, we have to use the following functions.
- turt.pencolor(“tan1”) is used as pen color.
- turt.pensize(3) is used to give the size of the pen.
- turt.goto(30,-30) is used to move the turtle at its accurate position.
- turt.pendown() is used to start drawing on the screen with the help of the turtle.
- turt.begin_fill() is used to start filling the color in the shape.
- turt.circle(45,180) is used to draw the circle on the screen.
- turt.right(90) is used to move the turtle in the right direction.
- turt.forward(55) is used to move the turtle in the forward direction.
- turt.penup() is used to stop the drawing.
- turt.end_fill() is used to stop filling the color in the shape.
# How to Make a Dog Face Using Python Turtle
#Drawing the face of the dog
turt.pencolor("tan1")
turt.color("tan1")
turt.pensize(3)
turt.penup()
turt.setheading(90)
turt.goto(30,-30)
turt.pendown()
turt.begin_fill()
turt.circle(45,180)
turt.right(90)
turt.goto(-45,-30)
turt.circle(35,190)
turt.setheading(0)
turt.forward(55)
turt.penup()
turt.setheading(0)
turt.pendown()
turt.circle(35,170)
turt.penup()
turt.end_fill()
After that, we are using the function to create the tongue of the dog. For creating the tongue we are using the following function.
- turt.pencolor(“Deeppink1”) is used to give the color to the pen.
- turt.goto(-10,-90) is used to move the turtle at its accurate position.
- turt.right(60) is used to move the turtle in the right direction.
- turt.pendown() is used to start the drawing on the screen.
- turt.begin_fill() is used to start filling the color in the shape.
- turt.forward(15) is used to move the turtle in the forward direction.
- turt.left(60) is used to move the turtle in the left direction.
- turt.end_fill() is used to stop filling color.
#Create the tongue of the dog
turt.pencolor("Deeppink1")
turt.color("pink")
turt.setheading(270)
turt.goto(-10,-90)
turt.right(60)
turt.pendown()
turt.begin_fill()
turt.forward(15)
turt.left(60)
turt.forward(10)
turt.circle(10,180)
turt.forward(10)
turt.left(60)
turt.forward(15)
turt.end_fill()
Now we are using the function to make the line on the tongue. For drawing the line on the tongue we are using the following function.
- turt.pensize(1) is used to give the size of the pen.
- turt.pencolor(“DeepPink”) is used to give the color to the pen.
- turt.goto(-13,-90) is used to move the turtle at its accurate position.
- turt.forward(17) is used to move the turtle in the forward direction.
- turt.circle(4,180) is used to make the circle by using a turtle.
- turt.left(90) is used to move the turtle in the left direction.
- turt.pendown() is used to start the drawing on the screen.
#line on the tongue
turt.pensize(1)
turt.pencolor("DeepPink")
turt.goto(-13,-90)
turt.setheading(270)
turt.forward(17)
turt.circle(4,180)
turt.penup()
turt.left(90)
turt.forward(8)
turt.goto(-13,-107)
turt.setheading(270)
turt.left(180)
turt.pendown()
turt.circle(4,-180)
Now we’re using the function to create the right and left ears of the dog. For drawing the ears we are using the following function.
- turt.penup() is used to stop the drawing.
- turt.pencolor(“black”) is used to give the color to the pen.
- turt.pendown() is used to start the drawing on the screen.
- turt.begin_fill() is used to start filling the color in the shape.
- turt.forward(10) is used to move the turtle in the forward direction.
- turt.left(60) is used to move the turtle in the left direction.
- turt.circle(35,145) is used to draw the circle.
- turt.end_fill() is used to stop filling color in the shape.
#right ear
turt.penup()
turt.goto(42,-45)
turt.pencolor("black")
turt.color("sienna")
turt.setheading(0)
turt.pendown()
turt.begin_fill()
turt.forward(10)
turt.left(60)
turt.circle(35,145)
turt.end_fill()
#left ear
turt.penup()
turt.goto(-70,-45)
turt.pendown()
turt.setheading(180)
turt.begin_fill()
turt.forward(10)
turt.left(-240)
turt.circle(35,-145)
turt.end_fill()
turt.penup()
After that, we are using the function to make the eyes of the dog. For drawing the eyes we are using the following function.
- turt.color(“black”) is used to give color to the shape.
- turt.pendown() is used to start the drawing on the screen.
- turt.begin_fill() is used to start filling the color in the shape.
- turt.circle(10,180) is used to draw the shep of the circle.
- turt.forward(5) is used to move the turtle in the forward direction.
- turt.end_fill() is used to stop filling color in the shape.
- turt.penup() is used to stop the drawing.
# How to Make a Dog Face Using Python Turtle
#eyes
turt.pencolor("black")
turt.color("black")
turt.goto(-5,-45)
turt.setheading(270)
turt.pendown()
turt.begin_fill()
turt.circle(10,180)
turt.forward(5)
turt.circle(10,180)
turt.forward(5)
turt.end_fill()
turt.penup()
turt.pencolor("black")
turt.color("black")
turt.goto(-45,-45)
turt.setheading(270)
turt.pendown()
turt.begin_fill()
turt.circle(10,180)
turt.forward(5)
turt.circle(10,180)
turt.forward(5)
turt.end_fill()
turt.penup()
Now, we are using the function to make the inner white dots in the eyes of the dog. For drawing the inner white dots in the eyes we are using the following function.
- turt.color(“white”) is used to give the white color to the dots.
- turt.goto(-2,-44) is used to move the turtle to its accurate position.
- turt.begin_fill() is used to start filling the color in the shape.
- turt.circle(6) is used to draw the shape of the circle.
# Inner white dots in the eye
turt.color("white")
turt.goto(-2,-44)
turt.begin_fill()
turt.circle(6)
turt.end_fill()
turt.color("white")
turt.goto(-40,-44)
turt.begin_fill()
turt.circle(6)
turt.end_fill()
Now, we are using the function to make the nose of the dog. For drawing the nose we are using the following function.
- turt.color(“black”) is used to give the black color to the nose.
- turt.goto(-25,-75) is used to move the turtle at its accurate position.
- turt.begin_fill() is used to start filling the color in the shape.
- turt.circle(2) is used to draw the shape of the circle.
- turt.hideturtle() is used to hide the turtle on the screen.
# How to Make a Dog Face Using Python Turtle
#Nose of the dog
turt.color("black")
turt.goto(-25,-75)
turt.begin_fill()
turt.circle(10)
turt.end_fill()
turt.goto(-14,-73)
turt.color("white")
turt.begin_fill()
turt.circle(2)
turt.end_fill()
turt.goto(-20,-73)
turt.color("white")
turt.begin_fill()
turt.circle(2)
turt.end_fill()
turt.goto(-17,-77)
turt.color("white")
turt.begin_fill()
turt.circle(2)
turt.end_fill()
turt.hideturtle()
tur.done()
After splitting the code and explaining How to Make a Dog Face Using Python Turtle. Now we will see how the output looks like after running the whole code.
# How to Make a Dog Face Using Python Turtle
# How to Make a Dog Face Using Python Turtle
#Imported turtle
import turtle as tur
#set the turtle object
turt=tur.Turtle()
tur.title("Pythontpoint")
screen=turt.getscreen()
screen.bgcolor("light yellow")
#Drawing the face of the dog
turt.pencolor("tan1")
turt.color("tan1")
turt.pensize(3)
turt.penup()
turt.setheading(90)
turt.goto(30,-30)
turt.pendown()
turt.begin_fill()
turt.circle(45,180)
turt.right(90)
turt.goto(-45,-30)
turt.circle(35,190)
turt.setheading(0)
turt.forward(55)
turt.penup()
turt.setheading(0)
turt.pendown()
turt.circle(35,170)
turt.penup()
turt.end_fill()
#Create the tongue of the dog
turt.pencolor("Deeppink1")
turt.color("pink")
turt.setheading(270)
turt.goto(-10,-90)
turt.right(60)
turt.pendown()
turt.begin_fill()
turt.forward(15)
turt.left(60)
turt.forward(10)
turt.circle(10,180)
turt.forward(10)
turt.left(60)
turt.forward(15)
turt.end_fill()
#line on the tongue
turt.pensize(1)
turt.pencolor("DeepPink")
turt.goto(-13,-90)
turt.setheading(270)
turt.forward(17)
turt.circle(4,180)
turt.penup()
turt.left(90)
turt.forward(8)
turt.goto(-13,-107)
turt.setheading(270)
turt.left(180)
turt.pendown()
turt.circle(4,-180)
#right ear
turt.penup()
turt.goto(42,-45)
turt.pencolor("black")
turt.color("sienna")
turt.setheading(0)
turt.pendown()
turt.begin_fill()
turt.forward(10)
turt.left(60)
turt.circle(35,145)
turt.end_fill()
#left ear
turt.penup()
turt.goto(-70,-45)
turt.pendown()
turt.setheading(180)
turt.begin_fill()
turt.forward(10)
turt.left(-240)
turt.circle(35,-145)
turt.end_fill()
turt.penup()
#eyes
turt.pencolor("black")
turt.color("black")
turt.goto(-5,-45)
turt.setheading(270)
turt.pendown()
turt.begin_fill()
turt.circle(10,180)
turt.forward(5)
turt.circle(10,180)
turt.forward(5)
turt.end_fill()
turt.penup()
turt.pencolor("black")
turt.color("black")
turt.goto(-45,-45)
turt.setheading(270)
turt.pendown()
turt.begin_fill()
turt.circle(10,180)
turt.forward(5)
turt.circle(10,180)
turt.forward(5)
turt.end_fill()
turt.penup()
# Inner white dots in the eye
turt.color("white")
turt.goto(-2,-44)
turt.begin_fill()
turt.circle(6)
turt.end_fill()
turt.color("white")
turt.goto(-40,-44)
turt.begin_fill()
turt.circle(6)
turt.end_fill()
#Nose of the dog
turt.color("black")
turt.goto(-25,-75)
turt.begin_fill()
turt.circle(10)
turt.end_fill()
turt.goto(-14,-73)
turt.color("white")
turt.begin_fill()
turt.circle(2)
turt.end_fill()
turt.goto(-20,-73)
turt.color("white")
turt.begin_fill()
turt.circle(2)
turt.end_fill()
turt.goto(-17,-77)
turt.color("white")
turt.begin_fill()
turt.circle(2)
turt.end_fill()
turt.hideturtle()
tur.done()
After running the above code we get the following output in which we can see that the face of the dog is beautifully drawn on the screen.
So, in this tutorial, we have illustrated How to Make a Dog Face Using Python Turtle. Moreover, we have also discussed the whole code used in this tutorial.
Read some more tutorials related to Python Turtle.
It is appropriate time to make a few plans for the longer term and it’s time to be happy. I have read this post and if I may I want to recommend you few fascinating issues or advice. Maybe you can write subsequent articles regarding this article. I want to learn even more things about it!
Some truly nice and useful information on this website, too I think the pattern contains fantastic features.
I precisely needed to say thanks yet again. I do not know what I might have gone through in the absence of these pointers revealed by you relating to that subject. It was actually a very troublesome situation in my view, but taking note of your expert technique you processed that took me to cry over contentment. I’m happier for your guidance as well as wish you comprehend what a powerful job you are providing instructing people today using a blog. I know that you’ve never got to know any of us.
Temp Mail You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
You actually make it seem so easy together with your presentation however I in finding this topic to be actually something which I believe I might never understand. It sort of feels too complicated and extremely wide for me. I am having a look forward on your subsequent publish, I?¦ll attempt to get the cling of it!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
A person essentially help to make seriously posts I would state. This is the first time I frequented your web page and thus far? I surprised with the research you made to create this particular publish extraordinary. Magnificent job!
Nice read, I just passed this onto a friend who was doing some research on that. And he just bought me lunch as I found it for him smile Thus let me rephrase that: Thank you for lunch! “He who walks in another’s tracks leaves no footprints.” by Joan Brannon.
Your article helped me a lot, is there any more related content? Thanks!
My brother recommended I might like this web site He was totally right This post actually made my day You cannt imagine just how much time I had spent for this information Thanks
I’ve recently started a website, the info you offer on this web site has helped me tremendously. Thanks for all of your time & work.
You should participate in a contest for among the finest blogs on the web. I will recommend this site!
There are certainly numerous particulars like that to take into consideration. That is a nice level to carry up. I offer the thoughts above as common inspiration however clearly there are questions just like the one you convey up where an important factor shall be working in honest good faith. I don?t know if greatest practices have emerged round things like that, but I am positive that your job is clearly identified as a fair game. Each boys and girls feel the affect of just a moment’s pleasure, for the rest of their lives.
I appreciate, cause I found just what I was looking for. You’ve ended my four day long hunt! God Bless you man. Have a great day. Bye
Real Estate This is really interesting, You’re a very skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your site in my social networks!
BaddieHub Nice post. I learn something totally new and challenging on websites
There are certainly plenty of particulars like that to take into consideration. That is a great level to convey up. I supply the thoughts above as general inspiration however clearly there are questions like the one you bring up the place crucial thing will probably be working in sincere good faith. I don?t know if finest practices have emerged around issues like that, however I am sure that your job is clearly recognized as a fair game. Each girls and boys really feel the influence of only a moment’s pleasure, for the rest of their lives.
Hi, I’m Jack. Your blog is a treasure trove of valuable insights, and I’ve made it a point to visit daily. Kudos on creating such an amazing resource!
Hi there, just became aware of your blog through Google, and found that it’s really informative. I am gonna watch out for brussels. I’ll appreciate if you continue this in future. Many people will be benefited from your writing. Cheers!
allegheny county real estate For the reason that the admin of this site is working, no uncertainty very quickly it will be renowned, due to its quality contents.
Tech to Force Awesome! Its genuinely remarkable post, I have got much clear idea regarding from this post . Tech to Force
Tech to Force I like the efforts you have put in this, regards for all the great content.
Perfect piece of work you have done, this website is really cool with fantastic information.
I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.
What i dont understood is in reality how youre now not really a lot more smartlyfavored than you might be now Youre very intelligent You understand therefore significantly in terms of this topic produced me personally believe it from a lot of numerous angles Its like women and men are not interested except it is one thing to accomplish with Woman gaga Your own stuffs outstanding Always care for it up
I do believe all the ideas youve presented for your post They are really convincing and will certainly work Nonetheless the posts are too short for novices May just you please lengthen them a little from subsequent time Thanks for the post
Hey there You have done a fantastic job I will certainly digg it and personally recommend to my friends Im confident theyll be benefited from this site
ссылка на интересную статью, рекомендую ознакомиться, перейти на сайт, на русском языке yypykgpnai … http://google.se/url?q=https://t.me/s/kazino_casino_top
Some really quality posts on this site, saved to favorites.
Family Dollar I do not even understand how I ended up here, but I assumed this publish used to be great
GlobalBllog Nice post. I learn something totally new and challenging on websites
Jinx Manga very informative articles or reviews at this time.
Tech Learner I appreciate you sharing this blog post. Thanks Again. Cool.
Clochant This was beautiful Admin. Thank you for your reflections.
We are a group of volunteers and starting a new scheme in our community.
Your website offered us with valuable info to work on. You’ve done a formidable job and our entire community will be thankful to you.!
Hi! Do you know if they make any plugins to assist with Search Engine
Optimization? I’m trying to get my site to rank for
some targeted keywords but I’m not seeing very good gains.
If you know of any please share. Many thanks!
I saw similar blog here: Eco blankets
Mohenjo Daro, Pakistan, is the location of the highest reliably recorded temperature in Asia, at 128.3 degrees Fahrenheit (53.5 degrees Celsius) on Could 26, 2010.
I enjoy your writing style truly enjoying this site.
Presumably the magazine doesn’t do deals with each source that it reproduces, so how does copyright law allow them to re-print editorial content that they don’t own without paying royalties?. . Also, can this law be applied internationally?.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I could not resist commenting. Very well written.
I love looking through an article that will make people think. Also, thank you for permitting me to comment.
You made some really good points there. I checked on the internet to find out more about the issue and found most people will go along with your views on this site.
This website definitely has all the information and facts I needed about this subject and didn’t know who to ask.
An impressive share! I have just forwarded this onto a colleague who had been doing a little homework on this. And he actually ordered me dinner due to the fact that I found it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanks for spending time to talk about this subject here on your blog.
Nice post. I learn something new and challenging on websites I stumbleupon every day. It will always be interesting to read through content from other authors and use something from other websites.
I really like it when people come together and share ideas. Great blog, keep it up.
Having read this I believed it was very informative. I appreciate you taking the time and effort to put this article together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worthwhile!
Way cool! Some very valid points! I appreciate you writing this post plus the rest of the website is very good.
Having read this I thought it was really informative. I appreciate you taking the time and energy to put this short article together. I once again find myself spending a lot of time both reading and posting comments. But so what, it was still worth it!
Baddiehub naturally like your web site however you need to take a look at the spelling on several of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth on the other hand I will surely come again again.
Blue Techker I appreciate you sharing this blog post. Thanks Again. Cool.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Next time I read a blog, I hope that it does not disappoint me just as much as this particular one. After all, I know it was my choice to read, but I really thought you would have something interesting to talk about. All I hear is a bunch of whining about something that you can fix if you weren’t too busy looking for attention.
I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website.
There are a handful of fascinating points on time in this post but I do not determine if them all center to heart. There’s some validity but I am going to take hold opinion until I look into it further. Good article , thanks therefore we want far more! Added onto FeedBurner too
An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers
Hello there! I simply would like to give you a huge thumbs up for the great info you have got right here on this post. I will be returning to your site for more soon.
Nice post. I learn something harder on distinct blogs everyday. Most commonly it is stimulating to learn content from other writers and exercise a specific thing from their store. I’d choose to use some while using content in my weblog whether you don’t mind. Natually I’ll supply you with a link in your internet blog. Thank you for sharing.
Getting to the the basis of a problem starts with figuring out the the premise. While could seem ambigious but many hard times start from the premise, not the conclusion.
Congratulations on having Hands down the most sophisticated blogs Ive come throughout in most time! Its just incredible how much you can detract from a thing mainly because of how visually beautiful it’s. Youve put collectively a very good blog space -great graphics, videos, layout. This really is undoubtedly a must-see weblog!
LOL! I recently found a problem in your post! Find out if your theme is positioned properly!
Hello there, I found your site via Google while looking for a related topic, your website came up, it looks great. I have bookmarked it in my google bookmarks.
I’m impressed, I must say. Very rarely do I come across a blog that’s both informative and entertaining, and let me tell you, you’ve hit the nail on the head. Your blog is important, the issue is something that not enough people are talking intelligently about
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/en/register?ref=JHQQKNKN
You actually make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand. It seems too complicated and very broad for me. I’m looking forward for your next post, I’ll try to get the hang of it!
definitely an interesting read. i usually dont comment. signed plaque
I wanted to thank you for this excellent read!! I absolutely loved every bit of it. I have got you book marked to check out new things you post…
You made some really good points there. I looked on the web for additional information about the issue and found most people will go along with your views on this site.
I believe one of your advertisings triggered my internet browser to resize, you might want to put that on your blacklist.
After study some of the blogs for your site now, we genuinely as if your technique for blogging. I bookmarked it to my bookmark web site list and you will be checking back soon. Pls consider my internet site likewise and tell me what you consider.
Hiya! I randomly stumbled upon your blog from Bing. Your article is filled with interesting information, and I will definitely use it at some point in my career. Keep up the excellent work!
There couple of fascinating points in time here but I don’t know if I see them all center to heart. There exists some validity but I will take hold opinion until I check into it further. Good write-up , thanks and then we want much more! Added onto FeedBurner also
Would love to always get updated great blog ! .
Pretty! This has been an incredibly wonderful article. Thank you for providing this information.
I adore your wordpress design, where do you get a hold of it through?
Can I say what a relief to get somebody who really knows what theyre talking about online. You actually know how to bring a problem to light and work out it essential. Workout . must check out this and understand why side from the story. I cant think youre no more common since you also undoubtedly possess the gift.
Hello there can I quotation some of the understanding found in this blog basically reference a person having a hyperlink back to your site?
You made some decent points there. I looked on the internet for any issue and located most individuals should go in addition to with the website.
You will find on our sites distinctive no deposit bonuses,no deposit casino , no deposit poker , no deposit bingo , no deposit forex and all the most effective deposit bonuses
I’m wondering if you have noticed how the media has changed? What once seemed like a never discussed issue has become more prevelant. It’s that time to chagnge our stance on this though.
An example of this can be Atypical Mole Syndrome. This syndrome brings about a tendency within the body to type an excessive amount of moles on our skin. This really is something that we could have obtained from our parents or our grandparents and we’ve no manage over whether or not we receive it or not.
TY for the great info! I would never have gotten this myself!
Thanks for the writeup. I definitely agree with what you are saying. I have been talking about this subject a lot lately with my father so hopefully this will get him to see my point of view. Fingers crossed!
I got what you mean , thanks for posting .Woh I am lucky to find this website through google.
Acquiring the appropriate hyperlink developing support can assist you to improve your web page position and popularity inside a small span of time.
Thank you for the sensible critique. Me & my friend were just preparing to do a little research about this. We got a book from our area library but I think I learned better from this post. I am very glad to see such wonderful info being shared freely out there…
It’s nearly impossible to find knowledgeable folks for this topic, however, you be understood as you know what you’re preaching about! Thanks
Terrific post, plenty of great info. I wish to show my pal and ask them the things they think.
It was very well authored and easy to get the picture. Unlike additional blogs I have read which are really not good. I also found your posts very interesting.
Your style is unique compared to other folks I have read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I’ll just book mark this page.
When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several e-mails with the same comment. Is there any way you can remove me from that service? Thank you!
whoah this weblog is excellent i really like studying your posts. Stay up the good paintings! You understand, lots of people are looking around for this information, you can help them greatly.
Some truly terrific work on behalf of the owner of this site, utterly outstanding subject matter.
foot massage are very relaxing, i love to have a foot massage after a hard days work”
I discovered your blog web site on google and check a few of your early posts. Proceed to keep up the excellent operate. I just additional up your RSS feed to my MSN News Reader. Looking for ahead to studying extra from you later on!…
Hey, you used to write wonderful, but the last few posts have been kinda boring… I miss your tremendous writings. Past few posts are just a little out of track! come on!