<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6130979069812369413</id><updated>2026-01-12T06:04:04.098-08:00</updated><category term="Python Turtle"/><category term="Python Games"/><category term="Python Projects"/><title type='text'>Vast Coding</title><subtitle type='html'>&quot;Python Source Codes, Python Projects, Technology&quot;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-7476265191735005833</id><published>2022-05-01T10:23:00.028-07:00</published><updated>2022-05-02T06:57:16.709-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Projects"/><title type='text'>Sketchpy Python Library | How to use and How to Install</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;span style=&quot;background-color: #eeeeee; font-family: helvetica;&quot;&gt;&lt;b&gt;How to use sketchpy library in python | How to install sketchpy library in python programming&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Hello visitors, In this blogpost I will tell you about new python library called &#39;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;Sketchpy&lt;/span&gt;&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;It&#39;s a new library in python programming. You can consider &lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;sketchpy&lt;/span&gt; as beginning level python project.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;u&gt;What is sketchpy?&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Sketchpy is a library which allows you to draw any sketch using turtle graphics. In &lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;sketchpy&lt;/span&gt; library there are several classes and you can import these classes and then draw &lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;Rdj,Thalapathy Vijay,Apj Abdul kalam&lt;/span&gt;,etc. This library also contains very useful codes like&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt; image coordinates tracer&lt;/span&gt;,etc&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;Sketchpy&lt;/span&gt; is a beginning level python project to draw amazing and awesome animations,drawings,designs using python turtle graphics.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;Usage&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;⬤&amp;nbsp; &lt;span style=&quot;font-family: helvetica;&quot;&gt;Install the package using&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666; font-family: courier;&quot;&gt;&lt;b style=&quot;background-color: #eeeeee;&quot;&gt;pip install sketchpy&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;⬤&amp;nbsp; &lt;span style=&quot;font-family: helvetica;&quot;&gt;Import it as&lt;/span&gt; &lt;span style=&quot;font-family: courier;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #eeeeee; color: #666666;&quot;&gt;import sketchpy&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;in your project&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-family: helvetica;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-family: helvetica;&quot;&gt;&lt;span&gt;How to Install&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;⬤&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Install using Terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;⬤&lt;span style=&quot;font-family: helvetica;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Install using CMD {Command Prompt}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-family: helvetica;&quot;&gt;Install&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;color: #444444; font-family: courier;&quot;&gt;pip install sketchpy&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #eeeeee; color: #444444; font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;It will definetely work, but if not just use&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #eeeeee; color: #444444; font-family: courier;&quot;&gt;pip install turtle open-cv wheel sketchpy&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #444444; font-family: courier;&quot;&gt;&lt;b style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;Example 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;
This code will draw rdj {Robert Downey Jr.} by only three lines
&lt;/b&gt;&lt;/span&gt;&lt;pre&gt;&lt;code&gt;
from sketchpy import library as lib
    

    obj = lib.rdj()
    obj.draw()
&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;

Output&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNfYFmFocC4isNyCheuFSJaF9_pTGo9bpHMSv7rM6-Zq8QMqsYQrnmM-kRm4XEHiOf3XB23xldGmR8gzwLUOkSP3m_8M7KTI_k8KNRt-vNtFKvRJUv0cIImbThDpB47HTvz2-tOTjsTHu0qObV50bGWFm9QzI6FDJ1JrIUCq8Q0vfikcwJrj5m3vd2/s480/rdj.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;480&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNfYFmFocC4isNyCheuFSJaF9_pTGo9bpHMSv7rM6-Zq8QMqsYQrnmM-kRm4XEHiOf3XB23xldGmR8gzwLUOkSP3m_8M7KTI_k8KNRt-vNtFKvRJUv0cIImbThDpB47HTvz2-tOTjsTHu0qObV50bGWFm9QzI6FDJ1JrIUCq8Q0vfikcwJrj5m3vd2/w320-h320/rdj.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;
Example 2&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;
This code will draw Thalapathy Vijay by only three lines
&lt;/b&gt;&lt;/span&gt;&lt;pre&gt;&lt;code&gt;
from sketchpy import library as lib

    obj = lib.vijay()
    obj.draw()
&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;
Output&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWpAjsd7YL7qifI_aQtg9tpFEHW1ImY9cO45jStdpUlsJlxIT7pjOPYE4Py_r68wUg3iOrNA1ALndvRKib2p5F6sfo9PqrK3NYYxyoNZtZhhyM78uTRKSDKZI7vNalO6thqWp71oBmYp5EKVKCKRa4a5FnXNJMDHN5-gtOngz_5TYx6HyGmLw7x1-V/s480/thalapathy%20vijay.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;480&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWpAjsd7YL7qifI_aQtg9tpFEHW1ImY9cO45jStdpUlsJlxIT7pjOPYE4Py_r68wUg3iOrNA1ALndvRKib2p5F6sfo9PqrK3NYYxyoNZtZhhyM78uTRKSDKZI7vNalO6thqWp71oBmYp5EKVKCKRa4a5FnXNJMDHN5-gtOngz_5TYx6HyGmLw7x1-V/s320/thalapathy%20vijay.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;Example 3&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;
This code will draw BTS by only three lines
&lt;/b&gt;&lt;/span&gt;&lt;pre&gt;&lt;code&gt;
from sketchpy import library as lib
    
    obj = lib.bts()
    obj.draw()
&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;
Output&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMsyrgsi1v3cl1Rtv5-FoTkDtZWCB3i7snNGLOtktYDikLfjzENK8lQ_Ii1GvX3CqDWgX5XkUEIfKq5Q4f6msnnGlS2teerKafiS_Uqmz4_Lxn2FeD4-xvOqFPqy33c8P1EptLkdjCpxdh-rkrxwrNDWq4dCZZdDVfrP5jA6atxOdWr2UTTjvy7H5h/s480/bts%20image.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;480&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMsyrgsi1v3cl1Rtv5-FoTkDtZWCB3i7snNGLOtktYDikLfjzENK8lQ_Ii1GvX3CqDWgX5XkUEIfKq5Q4f6msnnGlS2teerKafiS_Uqmz4_Lxn2FeD4-xvOqFPqy33c8P1EptLkdjCpxdh-rkrxwrNDWq4dCZZdDVfrP5jA6atxOdWr2UTTjvy7H5h/s320/bts%20image.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;These are the some examples of sketchpy library drawings/animations. You can also use svg file to draw it using turtle. Drawing using svg file post already available in my blog. You can check it under python turtle lable.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;This is an amazing python library for beginners. You can also make your own sketches using this library. You can trace the coordinates of your image and then you can draw it using python turtle. Also you can draw your sketch by using svg file.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;&lt;b&gt;This library is built with&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;⬤ &lt;span style=&quot;background-color: #eeeeee; font-family: helvetica;&quot;&gt;open-CV&lt;/span&gt;&lt;/div&gt;&lt;div&gt;⬤&lt;span style=&quot;font-family: helvetica;&quot;&gt; &lt;span style=&quot;background-color: #eeeeee;&quot;&gt;svgpathtools&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;⬤ &lt;span style=&quot;background-color: #eeeeee; font-family: helvetica;&quot;&gt;turtle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;⬤ &lt;span style=&quot;background-color: #eeeeee; font-family: helvetica;&quot;&gt;pillow&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #eeeeee; font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;I hope you liked this post.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;You can also Subscribe my Youtube Channel &#39;Vast Coding&#39;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: helvetica;&quot;&gt;&lt;b&gt;If you are facing any issues leave a comment on this post.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/7476265191735005833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2022/05/sketchpy-python-library.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/7476265191735005833'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/7476265191735005833'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2022/05/sketchpy-python-library.html' title='Sketchpy Python Library | How to use and How to Install'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNfYFmFocC4isNyCheuFSJaF9_pTGo9bpHMSv7rM6-Zq8QMqsYQrnmM-kRm4XEHiOf3XB23xldGmR8gzwLUOkSP3m_8M7KTI_k8KNRt-vNtFKvRJUv0cIImbThDpB47HTvz2-tOTjsTHu0qObV50bGWFm9QzI6FDJ1JrIUCq8Q0vfikcwJrj5m3vd2/s72-w320-h320-c/rdj.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-7886240267336865651</id><published>2022-04-28T00:02:00.003-07:00</published><updated>2022-05-01T09:24:02.345-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Python Turtle Graphics Avengers Logo</title><content type='html'>&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;How to make Avengers Logo using Python Turtle Graphics&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;In this blogpost I will show you how to make famous avengers logo using python turtle graphics in python programming.
It is very easy to draw if you have knowledge about python turtle graphics.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;What is Pyhon Turtle Graphics?&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Turtle is a pre-installed Python library that enables users to create pictures and shapes by providing them with a virtual canvas.
You can draw anything in python turtle graphics using commands. I have also made a tracer code in python programming which allows you to trace the x and y coordinates of any image and after tracing the coordinates you can easily put these coordinates in python turtle code and draw anything you want.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Python Libraries Needed&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt; :&lt;span style=&quot;background-color: white; color: #2b00fe;&quot;&gt; &lt;span&gt;&lt;b&gt;Turtle Graphics&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial; font-size: large; font-weight: bold; text-decoration-line: underline;&quot;&gt;INSTALLATION&lt;/span&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-weight: bold;&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;font-family: arial; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Turtle is a pre-installed library. If it is not pre-installed in your system then,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Run the following command in terminal or cmd&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;i&gt;pip install turtle&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Source Code&lt;/span&gt;&lt;/u&gt; &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-family: arial; font-size: large;&quot;&gt;: &lt;/b&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Here is the source code.You can copy this code from here and paste it to your favourite editor and run this code. You will definitely amazed after seeing the amazing output.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;
import turtle

def draw_circle(pen):
	# outer circle
	pen.setposition(0, -280)
	pen.pendown()
	pen.begin_fill()
	pen.color(&#39;red&#39;)
	pen.pencolor(&#39;white&#39;)
	pen.circle(300)
	pen.end_fill()
	pen.penup()

def draw_circle2(pen):
	# inner circle
	pen.pensize(2)
	pen.setposition(0, -230)
	pen.pendown()
	pen.begin_fill()
	pen.color(&#39;black&#39;)
	pen.circle(250)
	pen.end_fill()
	pen.penup()

def draw_A(pen):
	# drawing ‘A’
	pen.setposition(30, -110)
	pen.pendown()
	pen.begin_fill()
	pen.color(&#39;red&#39;)
	pen.pensize(10)
	pen.pencolor(&#39;white&#39;)
	pen.forward(23)
	pen.backward(123)
	pen.left(60)
	pen.backward(220)
	pen.right(60)
	pen.backward(100)
	pen.right(117)
	pen.backward(710)
	pen.right(63)
	pen.backward(110)
	pen.right(90)
	pen.backward(510)
	pen.right(90)
	pen.backward(100)
	pen.right(90)
	pen.backward(70)
	pen.end_fill()
	pen.penup()

def draw_triangle(pen):
	# Triangle shape in ‘A’ to make it look like 2d
	pen.pensize(10)
	pen.setposition(53, -40)
	pen.pendown()
	pen.begin_fill()
	pen.color(&#39;black&#39;)
	pen.pencolor(&#39;white&#39;)
	pen.right(90)
	pen.forward(100)
	pen.right(115)
	pen.forward(250)
	pen.right(157)
	pen.forward(227)
	pen.end_fill()

def draw_arrow(pen):
	# arrow
	pen.backward(80)
	pen.left(42)
	pen.forward(147)
	pen.right(83)
	pen.forward(140)

if __name__ == &#39;__main__&#39;:
	win = turtle.Screen()
	win.bgcolor(&#39;black&#39;)

	avengers = turtle.Turtle()
	avengers.speed(10)
	avengers.pensize(10)
	avengers.penup()
	
	draw_circle(avengers)
	draw_circle2(avengers)
	draw_A(avengers)
	draw_triangle(avengers)
	draw_arrow(avengers)
	
	avengers.hideturtle()
	turtle.done()
&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;&lt;u&gt;

Output&lt;/u&gt; :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrtVSNVVBKHmHkCVdETevsvB3rcJkG6r65MufdNnuEwqBsk4EiYo-Qwa6y9W8xQm_jTnGPI-1rAm7QXItHxC78jO9KL2qL-Ucf1IZ3hhRDjpgE5RL_Pjy_Nb-999bNmHpLoTGJdZM7Xiz7Mz-45rWGmJrA_MarNeUKFvXyYXihMakHXLHWgCFy8gUc/s4000/avanegrs%20image.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3000&quot; data-original-width=&quot;4000&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrtVSNVVBKHmHkCVdETevsvB3rcJkG6r65MufdNnuEwqBsk4EiYo-Qwa6y9W8xQm_jTnGPI-1rAm7QXItHxC78jO9KL2qL-Ucf1IZ3hhRDjpgE5RL_Pjy_Nb-999bNmHpLoTGJdZM7Xiz7Mz-45rWGmJrA_MarNeUKFvXyYXihMakHXLHWgCFy8gUc/w400-h300/avanegrs%20image.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;In the Above image I have shown you the output of the upper code.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;You can use any software to run this code which supports python like&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt; PYTHON IDLE, VS CODE ,PYCHARM, ETC&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;b&gt;&lt;u&gt;My Youtube Channel&lt;/u&gt; &lt;/b&gt;&lt;/span&gt;: &lt;span style=&quot;color: #2b00fe; font-family: helvetica;&quot;&gt;&lt;b&gt;Vast Coding&lt;/b&gt; {Search it on youtube}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #2b00fe; font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Also Read &amp;gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;a href=&quot;https://vastcoding.blogspot.com/2022/04/rocking-star-yash-drawing-using-python.html&quot; rel=&quot;&quot; target=&quot;&quot;&gt;How to make Rocking Star yash drawing in python turtle graphics&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;a href=&quot;https://vastcoding.blogspot.com/2022/04/jr-ntr-drawing-using-python-turtle.html&quot;&gt;How to make Jr. NTR drawing using python turtle graphics&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Keywords/Related Searches: {Ignore}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;turtle python, turtle python commands, python turtle graphics,&amp;nbsp;&lt;/div&gt;&lt;div&gt;turtle python tutorial, turtle python example, turtle drawing python,&amp;nbsp;&lt;/div&gt;&lt;div&gt;python turtle graphics tutorial, python turtle programming,&amp;nbsp;&lt;/div&gt;&lt;div&gt;python turtle graphics code, turtle graphics in python, python turtle graphics download&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #2b00fe; font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #2b00fe; font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/7886240267336865651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2022/04/avengers-logo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/7886240267336865651'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/7886240267336865651'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2022/04/avengers-logo.html' title='Python Turtle Graphics Avengers Logo'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrtVSNVVBKHmHkCVdETevsvB3rcJkG6r65MufdNnuEwqBsk4EiYo-Qwa6y9W8xQm_jTnGPI-1rAm7QXItHxC78jO9KL2qL-Ucf1IZ3hhRDjpgE5RL_Pjy_Nb-999bNmHpLoTGJdZM7Xiz7Mz-45rWGmJrA_MarNeUKFvXyYXihMakHXLHWgCFy8gUc/s72-w400-h300-c/avanegrs%20image.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-5741519679660290921</id><published>2022-04-24T20:12:00.005-07:00</published><updated>2022-04-26T08:17:43.054-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Jr. NTR Drawing using Python Turtle Graphics</title><content type='html'>Jr.NTR Drawing using Python Turtle Graphics | RRR Movie Hero Drawing&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;div&gt;Note : &lt;span style=&quot;color: red;&quot;&gt;If you are facing any issues to copy this code then click select all while copying the code. After that extract the code from the copied text. {Your mobile may lag for 3-5 seconds when you hold the code to copy,it is because the coordinates in the code are so long. Don&#39;t worry just wait 3-5 seconds after holding the text and click select all and copy the full page and paste it to your editor and from there copy the code}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Source Code :

&lt;pre&gt;&lt;code&gt;
import turtle as tu
tu.bgcolor(&quot;orange red&quot;)

class googlemapslogo:
    def __init__(self):
        self.hairbeard =[(302, 221) ,(301, 231) ,(300, 238) ,(297, 246) ,(296, 254) ,(299, 265) ,(302, 274) ,(305, 284) ,(307, 294) ,(306, 303) ,(312, 312) ,(318, 320) ,(325, 324) ,(329, 328) ,(332, 336) ,(334, 343) ,(334, 354) ,(337, 346) ,(339, 352) ,(343, 346) ,(343, 343) ,(345, 336) ,(350, 330) ,(357, 328) ,(361, 325) ,(356, 325) ,(365, 324) ,(369, 323) ,(374, 322) ,(380, 321) ,(385, 321) ,(390, 323) ,(393, 327) ,(399, 331) ,(404, 332) ,(408, 332) ,(413, 332) ,(417, 331) ,(419, 329) ,(424, 329) ,(429, 331) ,(434, 335) ,(440, 340) ,(450, 349) ,(446, 349) ,(455, 356) ,(450, 356) ,(454, 359) ,(454, 364) ,(462, 362) ,(466, 358) ,(470, 356) ,(473, 352) ,(475, 347) ,(477, 342) ,(480, 342) ,(484, 338) ,(486, 334) ,(487, 330) ,(490, 323) ,(492, 320) ,(493, 311) ,(495, 310) ,(496, 304) ,(500, 299) ,(502, 293) ,(502, 303) ,(501, 307) ,(500, 313) ,(499, 319) ,(495, 324) ,(496, 331) ,(493, 337) ,(491, 343) ,(489, 345) ,(488, 350) ,(487, 356) ,(485, 361) ,(482, 364) ,(479, 369) ,(473, 375) ,(472, 381) ,(469, 386) ,(466, 391) ,(464, 395) ,(461, 403) ,(461, 400) ,(458, 402) ,(457, 406) ,(455, 403) ,(453, 405) ,(450, 408) ,(447, 413) ,(441, 419) ,(439, 423) ,(435, 427) ,(432, 432) ,(430, 435) ,(427, 440) ,(423, 444) ,(420, 447) ,(418, 452) ,(418, 449) ,(415, 450) ,(411, 456) ,(411, 452) ,(408, 459) ,(407, 455) ,(401, 463) ,(403, 456) ,(398, 464) ,(397, 459) ,(393, 465) ,(392, 461) ,(390, 466) ,(388, 464) ,(384, 466) ,(383, 463) ,(381, 465) ,(381, 460) ,(379, 459) ,(378, 466) ,(375, 459) ,(376, 467) ,(371, 459) ,(370, 463) ,(367, 455) ,(365, 463) ,(363, 458) ,(363, 462) ,(359, 453) ,(358, 457) ,(360, 461) ,(355, 456) ,(356, 461) ,(352, 453) ,(352, 457) ,(348, 448) ,(346, 453) ,(344, 447) ,(344, 451) ,(340, 443) ,(340, 447) ,(338, 437) ,(337, 444) ,(335, 439) ,(332, 441) ,(331, 436) ,(329, 434) ,(328, 431) ,(325, 421) ,(324, 415) ,(323, 428) ,(321, 416) ,(323, 406) ,(323, 402) ,(313, 396) ,(309, 392) ,(302, 380) ,(303, 385) ,(298, 378) ,(294, 372) ,(291, 366) ,(288, 360) ,(287, 353) ,(284, 343) ,(281, 330) ,(279, 318) ,(279, 305) ,(280, 294) ,(281, 283) ,(284, 272) ,(285, 265) ,(287, 257) ,(290, 250) ,(292, 240) ,(295, 232) ,(295, 224) ,(296, 218) ,(296, 208) ,(293, 198) ,(289, 194) ,(288, 188) ,(290, 181) ,(292, 172) ,(292, 166) ,(293, 157) ,(296, 148) ,(297, 137) ,(298, 130) ,(300, 121) ,(300, 114) ,(302, 105) ,(306, 98) ,(309, 93) ,(312, 88) ,(317, 85) ,(315, 78) ,(314, 69) ,(314, 59) ,(318, 50) ,(321, 45) ,(328, 39) ,(333, 34) ,(338, 32) ,(341, 25) ,(345, 23) ,(351, 21) ,(353, 18) ,(360, 17) ,(366, 13) ,(373, 9) ,(381, 7) ,(386, 4) ,(393, 6) ,(397, 7) ,(400, 7) ,(403, 9) ,(409, 8) ,(416, 7) ,(426, 8) ,(437, 8) ,(442, 9) ,(451, 11) ,(458, 13) ,(464, 14) ,(468, 17) ,(474, 19) ,(482, 22) ,(487, 26) ,(492, 28) ,(497, 32) ,(500, 34) ,(503, 36) ,(506, 39) ,(511, 44) ,(513, 44) ,(515, 47) ,(516, 48) ,(521, 54) ,(525, 62) ,(527, 71) ,(529, 76) ,(531, 83) ,(535, 87) ,(538, 96) ,(541, 105) ,(542, 114) ,(538, 117) ,(536, 121) ,(533, 126) ,(532, 135) ,(532, 140) ,(531, 146) ,(531, 149) ,(533, 156) ,(532, 165) ,(530, 174) ,(528, 183) ,(529, 191) ,(526, 200) ,(523, 206) ,(521, 212) ,(519, 215) ,(517, 223) ,(513, 229) ,(512, 236) ,(512, 240) ,(511, 246) ,(510, 257) ,(508, 256) ,(507, 252) ,(508, 247) ,(508, 243) ,(509, 237) ,(506, 229) ,(504, 227) ,(506, 225) ,(507, 216) ,(506, 205) ,(504, 198) ,(507, 198) ,(508, 191) ,(512, 191) ,(509, 181) ,(510, 177) ,(508, 171) ,(505, 163) ,(503, 157) ,(499, 158) ,(490, 158) ,(492, 155) ,(488, 156) ,(480, 158) ,(470, 156) ,(463, 153) ,(454, 149) ,(453, 156) ,(450, 149) ,(443, 143) ,(435, 142) ,(421, 141) ,(416, 139) ,(408, 132) ,(401, 131) ,(391, 130) ,(384, 131) ,(379, 129) ,(371, 123) ,(367, 118) ,(360, 111) ,(359, 110) ,(354, 115) ,(350, 116) ,(342, 119) ,(336, 126) ,(348, 123) ,(338, 131) ,(337, 136) ,(335, 142) ,(343, 141) ,(337, 150) ,(338, 157) ,(341, 166) ,(333, 165) ,(342, 170) ,(336, 172) ,(342, 173) ,(335, 176) ,(341, 177) ,(332, 181) ,(340, 185) ,(333, 187) ,(337, 191) ,(328, 194) ,(322, 195) ,(312, 196) ,(317, 198) ,(313, 200) ,(317, 207) ,(311, 207) ,(306, 208) ,(303, 214) ,(302, 222)]
        self.hairbg =[(335, 98) ,(341, 104) ,(352, 112) ,(360, 104) ,(367, 113) ,(373, 120) ,(382, 127) ,(386, 124) ,(392, 124) ,(403, 124) ,(411, 129) ,(420, 131) ,(435, 136) ,(446, 139) ,(451, 155) ,(457, 146) ,(463, 149) ,(476, 148) ,(491, 148) ,(499, 145) ,(498, 151) ,(512, 148) ,(521, 136) ,(528, 130) ,(518, 132) ,(506, 138) ,(508, 122) ,(496, 140) ,(489, 141) ,(485, 143) ,(495, 121) ,(484, 132) ,(487, 120) ,(486, 104) ,(485, 100) ,(474, 106) ,(480, 91) ,(471, 100) ,(470, 85) ,(465, 91) ,(451, 92) ,(434, 93) ,(448, 67) ,(441, 77) ,(436, 58) ,(435, 81) ,(432, 75) ,(424, 85) ,(417, 87) ,(409, 88) ,(412, 67) ,(408, 80) ,(400, 59) ,(395, 75) ,(399, 82) ,(402, 93) ,(403, 104) ,(399, 111) ,(389, 119) ,(377, 119) ,(371, 110) ,(379, 97) ,(377, 90) ,(376, 86) ,(380, 78) ,(374, 82) ,(375, 78) ,(370, 87) ,(362, 82) ,(362, 87) ,(359, 87) ,(354, 98) ,(353, 87) ,(347, 99) ,(339, 97) ,(335, 99)]
        self.face1 =[(326, 192) ,(326, 175) ,(326, 159) ,(330, 138) ,(334, 123) ,(347, 107) ,(363, 102) ,(379, 111) ,(391, 119) ,(399, 119) ,(416, 126) ,(433, 128) ,(439, 128) ,(462, 132) ,(476, 143) ,(502, 142) ,(514, 142) ,(521, 160) ,(519, 185) ,(513, 206) ,(512, 221) ,(511, 231) ,(510, 242) ,(508, 258) ,(508, 268) ,(507, 287) ,(505, 296) ,(501, 309) ,(499, 321) ,(493, 328) ,(490, 338) ,(483, 346) ,(470, 362) ,(451, 374) ,(440, 355) ,(426, 337) ,(402, 335) ,(389, 332) ,(372, 331) ,(360, 333) ,(355, 343) ,(338, 354) ,(327, 340) ,(309, 319) ,(301, 307) ,(301, 279) ,(293, 263) ,(296, 232) ,(300, 216) ,(305, 202) ,(314, 190) ,(327, 191) ,(331, 191)]
        self.face2 =[(441, 237) ,(442, 225) ,(439, 216) ,(450, 215) ,(461, 216) ,(475, 214) ,(480, 212) ,(483, 211) ,(487, 204) ,(488, 192) ,(484, 180) ,(484, 166) ,(493, 157) ,(505, 161) ,(504, 179) ,(508, 189) ,(502, 199) ,(504, 205) ,(504, 211) ,(506, 217) ,(505, 225) ,(507, 232) ,(508, 236) ,(508, 240) ,(508, 244) ,(506, 249) ,(507, 255) ,(505, 255) ,(499, 247) ,(490, 243) ,(485, 240) ,(478, 240) ,(474, 240) ,(466, 240) ,(453, 241) ,(445, 240) ,(441, 238)]
        self.face3 =[(329, 196) ,(334, 194) ,(340, 196) ,(340, 203) ,(345, 209) ,(350, 212) ,(350, 209) ,(358, 214) ,(363, 214) ,(368, 216) ,(378, 216) ,(385, 221) ,(393, 226) ,(401, 227) ,(410, 229) ,(398, 222) ,(386, 212) ,(400, 215) ,(391, 207) ,(405, 215) ,(398, 207) ,(406, 212) ,(401, 204) ,(407, 205) ,(412, 208) ,(418, 212) ,(416, 205) ,(422, 213) ,(426, 225) ,(423, 232) ,(426, 236) ,(431, 239) ,(437, 239) ,(443, 240) ,(450, 242) ,(454, 241) ,(455, 234) ,(456, 227) ,(456, 220) ,(450, 216) ,(455, 216) ,(464, 216) ,(470, 216) ,(480, 216) ,(487, 213) ,(480, 213) ,(489, 209) ,(486, 207) ,(492, 203) ,(486, 202) ,(499, 197) ,(488, 196) ,(498, 189) ,(487, 189) ,(493, 183) ,(490, 183) ,(486, 181) ,(496, 177) ,(486, 175) ,(496, 170) ,(487, 165) ,(480, 164) ,(492, 165) ,(500, 166) ,(505, 169) ,(500, 173) ,(502, 182) ,(504, 187) ,(501, 195) ,(506, 196) ,(506, 191) ,(509, 192) ,(509, 180) ,(508, 170) ,(507, 166) ,(504, 160) ,(505, 155) ,(491, 158) ,(481, 158) ,(472, 157) ,(464, 155) ,(456, 152) ,(452, 155) ,(450, 150) ,(447, 147) ,(442, 146) ,(435, 146) ,(429, 146) ,(421, 145) ,(415, 143) ,(407, 140) ,(413, 140) ,(407, 136) ,(402, 134) ,(392, 134) ,(386, 136) ,(379, 139) ,(377, 135) ,(373, 126) ,(366, 123) ,(362, 121) ,(358, 122) ,(353, 123) ,(348, 126) ,(344, 131) ,(342, 139) ,(342, 145) ,(352, 142) ,(357, 141) ,(366, 141) ,(376, 143) ,(387, 144) ,(382, 148) ,(392, 150) ,(399, 150) ,(410, 152) ,(418, 155) ,(424, 156) ,(433, 158) ,(439, 163) ,(429, 166) ,(438, 167) ,(436, 174) ,(422, 177) ,(410, 178) ,(399, 182) ,(390, 183) ,(403, 186) ,(388, 185) ,(373, 180) ,(373, 182) ,(361, 179) ,(350, 171) ,(348, 177) ,(343, 173) ,(341, 178) ,(340, 183) ,(341, 188) ,(336, 192) ,(328, 197)]
        self.sunglassesborder =[(324, 232) ,(331, 228) ,(338, 227) ,(345, 227) ,(357, 229) ,(368, 230) ,(378, 233) ,(387, 235) ,(394, 237) ,(403, 240) ,(410, 245) ,(411, 251) ,(407, 260) ,(404, 267) ,(398, 274) ,(392, 281) ,(386, 286) ,(378, 290) ,(370, 290) ,(358, 289) ,(350, 286) ,(343, 281) ,(334, 275) ,(326, 268) ,(321, 263) ,(320, 255) ,(320, 245) ,(322, 236) ,(325, 230) ,(336, 226) ,(346, 226) ,(352, 226) ,(362, 227) ,(370, 228) ,(379, 229) ,(389, 232) ,(399, 234) ,(407, 236) ,(418, 237) ,(427, 239) ,(437, 241) ,(447, 243) ,(462, 246) ,(475, 248) ,(483, 249) ,(489, 251) ,(496, 252) ,(502, 256) ,(509, 262) ,(512, 269) ,(512, 278) ,(507, 286) ,(503, 293) ,(497, 298) ,(492, 302) ,(483, 306) ,(474, 307) ,(465, 307) ,(455, 307) ,(444, 304) ,(439, 301) ,(432, 294) ,(430, 286) ,(429, 278) ,(430, 271) ,(430, 263) ,(431, 256) ,(434, 251) ,(441, 248) ,(450, 248) ,(458, 249) ,(465, 250) ,(474, 250) ,(480, 252) ,(487, 252) ,(496, 257) ,(505, 260)]
        self.sunglassescolor =[(326, 234) ,(332, 230) ,(337, 230) ,(344, 229) ,(352, 230) ,(360, 231) ,(369, 232) ,(378, 235) ,(387, 237) ,(395, 240) ,(403, 241) ,(409, 246) ,(409, 254) ,(407, 259) ,(405, 265) ,(401, 270) ,(396, 276) ,(391, 280) ,(385, 284) ,(378, 288) ,(366, 289) ,(360, 288) ,(351, 284) ,(344, 279) ,(336, 275) ,(330, 270) ,(326, 266) ,(322, 261) ,(321, 253) ,(321, 246) ,(322, 240) ,(326, 234)]
        self.sunglassescolor2 =[(436, 251) ,(448, 250) ,(459, 250) ,(468, 251) ,(478, 252) ,(486, 254) ,(494, 256) ,(503, 261) ,(510, 268) ,(510, 277) ,(507, 285) ,(501, 293) ,(493, 300) ,(484, 304) ,(476, 306) ,(465, 306) ,(456, 306) ,(446, 304) ,(439, 299) ,(434, 293) ,(430, 285) ,(430, 280) ,(431, 272) ,(431, 264) ,(432, 257) ,(437, 251)]
        self.eyebrow1 =[(327, 225) ,(335, 222) ,(340, 219) ,(344, 217) ,(345, 213) ,(351, 215) ,(357, 218) ,(365, 221) ,(365, 216) ,(376, 219) ,(380, 222) ,(388, 224) ,(392, 225) ,(400, 229) ,(408, 230) ,(412, 233) ,(407, 233) ,(402, 233) ,(396, 232) ,(389, 229) ,(379, 228) ,(372, 226) ,(364, 226) ,(355, 225) ,(348, 225) ,(341, 225) ,(337, 225) ,(333, 225) ,(327, 227) ,(325, 227)]
        self.eyebrow2 =[(452, 242) ,(459, 242) ,(468, 241) ,(476, 241) ,(474, 240) ,(482, 240) ,(488, 241) ,(493, 244) ,(498, 247) ,(503, 253) ,(495, 251) ,(489, 248) ,(481, 246) ,(476, 246) ,(472, 243) ,(468, 245) ,(466, 245) ,(463, 244) ,(457, 243) ,(453, 242)]
        self.face4 =[(304, 238) ,(313, 243) ,(314, 250) ,(315, 255) ,(318, 262) ,(322, 266) ,(327, 270) ,(331, 274) ,(337, 279) ,(344, 284) ,(352, 288) ,(343, 287) ,(352, 292) ,(346, 296) ,(337, 296) ,(329, 297) ,(347, 298) ,(341, 302) ,(337, 305) ,(331, 306) ,(337, 308) ,(334, 310) ,(327, 310) ,(323, 310) ,(329, 313) ,(332, 317) ,(337, 313) ,(342, 313) ,(349, 313) ,(344, 320) ,(347, 317) ,(353, 313) ,(356, 308) ,(358, 303) ,(365, 302) ,(364, 299) ,(366, 295) ,(367, 292) ,(372, 292) ,(377, 291) ,(384, 289) ,(376, 295) ,(371, 301) ,(367, 306) ,(362, 311) ,(360, 315) ,(358, 319) ,(356, 323) ,(354, 326) ,(350, 329) ,(346, 332) ,(346, 336) ,(342, 341) ,(341, 349) ,(337, 350) ,(334, 345) ,(333, 337) ,(329, 329) ,(320, 321) ,(311, 307) ,(307, 300) ,(303, 283) ,(298, 267) ,(297, 253) ,(298, 244) ,(301, 232) ,(304, 221) ,(308, 230) ,(315, 235) ,(319, 238) ,(319, 244) ,(316, 246) ,(309, 240) ,(304, 238)]
        self.k =[(358, 321) ,(360, 314) ,(365, 307) ,(369, 302) ,(373, 298) ,(377, 294) ,(380, 290) ,(387, 288) ,(383, 291) ,(378, 298) ,(377, 301) ,(375, 306) ,(371, 308) ,(368, 311) ,(365, 313) ,(362, 317) ,(358, 322)]
        self.nose1 =[(379, 318) ,(381, 316) ,(384, 316) ,(387, 318) ,(391, 321) ,(393, 325) ,(395, 330) ,(399, 331) ,(404, 333) ,(409, 333) ,(415, 332) ,(417, 330) ,(419, 328) ,(422, 325) ,(425, 324) ,(429, 325)]
        self.lips1 =[(353, 353) ,(356, 348) ,(360, 345) ,(365, 342) ,(370, 340) ,(377, 340) ,(383, 339) ,(390, 340) ,(395, 340) ,(403, 340) ,(407, 342) ,(414, 344) ,(421, 346) ,(428, 354) ,(431, 360) ,(434, 365) ,(433, 371) ,(432, 377) ,(423, 372) ,(420, 370) ,(412, 367) ,(406, 365) ,(397, 364) ,(389, 363) ,(384, 361) ,(378, 358) ,(372, 357) ,(367, 356) ,(361, 356) ,(353, 353)]
        self.h =[(355, 351) ,(363, 352) ,(369, 351) ,(379, 351) ,(384, 352) ,(389, 354) ,(393, 355) ,(396, 358) ,(402, 357) ,(407, 358) ,(413, 359) ,(419, 360) ,(425, 362) ,(429, 366)]
        self.m =[(364, 347) ,(368, 344) ,(373, 343) ,(378, 342) ,(375, 348) ,(380, 348) ,(384, 345) ,(389, 344) ,(394, 344) ,(399, 346) ,(396, 350) ,(399, 352) ,(404, 348) ,(409, 347) ,(415, 351) ,(418, 355) ,(421, 357) ,(421, 353) ,(430, 363) ,(431, 360) ,(427, 353) ,(421, 348) ,(417, 346) ,(409, 344) ,(399, 342) ,(393, 341) ,(388, 340) ,(382, 339) ,(374, 341) ,(370, 341) ,(363, 344) ,(359, 348)]
        self.nl =[(438, 301) ,(435, 305) ,(437, 311) ,(437, 317) ,(435, 322) ,(433, 325)]
        self.nlm =[(379, 305) ,(384, 308) ,(376, 308) ,(375, 313) ,(377, 315) ,(380, 313) ,(383, 312) ,(386, 313) ,(390, 316) ,(394, 320) ,(397, 324) ,(401, 328) ,(404, 329) ,(408, 331) ,(413, 329) ,(417, 326) ,(420, 323) ,(424, 321) ,(430, 322) ,(429, 321) ,(425, 320) ,(421, 321) ,(419, 322) ,(415, 325) ,(413, 327) ,(411, 327) ,(408, 328) ,(403, 327) ,(399, 324) ,(398, 321) ,(395, 317) ,(391, 314) ,(389, 311) ,(384, 308)]
        self.yy =[(376, 307) ,(376, 304) ,(379, 297) ,(383, 293) ,(389, 286) ,(395, 281) ,(400, 276) ,(404, 272) ,(409, 265) ,(411, 255) ,(417, 257) ,(415, 263) ,(415, 271) ,(414, 278) ,(413, 285) ,(413, 290) ,(411, 299) ,(410, 308) ,(410, 314) ,(406, 315) ,(402, 318) ,(396, 319) ,(393, 314) ,(388, 310) ,(384, 308) ,(377, 308)]
        self.yyy =[(419, 257) ,(423, 257) ,(429, 258) ,(428, 263) ,(429, 273) ,(429, 279) ,(429, 283) ,(429, 290) ,(432, 296) ,(436, 300) ,(434, 304) ,(436, 310) ,(436, 313) ,(434, 322) ,(433, 317) ,(430, 314) ,(426, 311) ,(425, 303) ,(424, 296) ,(420, 291) ,(419, 300) ,(419, 304) ,(417, 308) ,(415, 315) ,(412, 320) ,(412, 316) ,(412, 312) ,(412, 304) ,(415, 299) ,(415, 294) ,(416, 280) ,(418, 272) ,(417, 261) ,(419, 257) ,(419, 257) ,(423, 257) ,(429, 258) ,(428, 263) ,(429, 273) ,(429, 279) ,(429, 283) ,(429, 290) ,(432, 296) ,(436, 300) ,(434, 304) ,(436, 310) ,(436, 313) ,(434, 322) ,(433, 317) ,(430, 314) ,(426, 311) ,(425, 303) ,(424, 296) ,(420, 291) ,(419, 300) ,(419, 304) ,(417, 308) ,(415, 315) ,(412, 320) ,(412, 316) ,(412, 312) ,(412, 304) ,(415, 299) ,(415, 294) ,(416, 280) ,(418, 272) ,(417, 261) ,(419, 257)]
        self.s =[(289, 184) ,(294, 190) ,(297, 199) ,(301, 208) ,(304, 216) ,(308, 224) ,(311, 229) ,(317, 234) ,(321, 235)]
        self.ear1 =[(290, 195) ,(295, 203) ,(295, 212) ,(294, 224) ,(293, 234) ,(290, 243) ,(288, 252) ,(287, 257) ,(284, 269) ,(277, 265) ,(270, 259) ,(269, 251) ,(266, 239) ,(266, 231) ,(264, 223) ,(263, 214) ,(263, 208) ,(264, 201) ,(265, 197) ,(268, 194) ,(269, 189) ,(274, 186) ,(279, 186) ,(285, 190) ,(289, 194) ,(295, 204)]
        self.ear10 =[(279, 198) ,(276, 196) ,(271, 197) ,(270, 200) ,(267, 207) ,(267, 210) ,(267, 217) ,(267, 221) ,(267, 226) ,(269, 232) ,(270, 231) ,(269, 229) ,(269, 225) ,(269, 218) ,(271, 214) ,(272, 213) ,(273, 211) ,(275, 206) ,(278, 203) ,(279, 197)]
        self.ear12 =[(287, 214) ,(282, 217) ,(276, 220) ,(274, 226) ,(276, 232) ,(280, 236) ,(282, 240) ,(283, 248) ,(285, 247) ,(286, 243) ,(286, 238) ,(286, 235) ,(287, 232) ,(289, 229) ,(293, 224) ,(291, 218) ,(288, 214)]
        self.ear2 =[(510, 257) ,(511, 251) ,(512, 244) ,(513, 239) ,(516, 232) ,(519, 232) ,(525, 232) ,(529, 236) ,(529, 239) ,(530, 242) ,(528, 248) ,(524, 253) ,(523, 256) ,(521, 262) ,(519, 267) ,(516, 273) ,(514, 280) ,(512, 284) ,(510, 290) ,(507, 296) ,(502, 304) ,(504, 296) ,(505, 293) ,(507, 289) ,(510, 284) ,(513, 276) ,(513, 271) ,(511, 263) ,(510, 259)]
        self.sunl =[(513, 271) ,(519, 271) ,(519, 263) ,(518, 255) ,(518, 250) ,(517, 246) ,(515, 243) ,(513, 237) ,(516, 232) ,(517, 231) ,(514, 230)]
        self.face5 =[(435, 327) ,(440, 332) ,(443, 337) ,(447, 344) ,(450, 345) ,(449, 336) ,(448, 329) ,(448, 319) ,(449, 314) ,(461, 313) ,(466, 313) ,(477, 314) ,(474, 328) ,(473, 336) ,(468, 344) ,(468, 352) ,(476, 347) ,(476, 342) ,(482, 340) ,(485, 334) ,(490, 327) ,(492, 322) ,(494, 314) ,(498, 302) ,(501, 295) ,(494, 300) ,(494, 301) ,(489, 305) ,(483, 307) ,(473, 309) ,(462, 309) ,(452, 308) ,(444, 306) ,(440, 304) ,(440, 308) ,(440, 311) ,(439, 316) ,(438, 319) ,(436, 328)]
        self.sunl2 =[(411, 252) ,(417, 253) ,(423, 255) ,(428, 256) ,(431, 256)]
        self.j =[(354, 356) ,(355, 361) ,(355, 364) ,(362, 370) ,(366, 375) ,(370, 371) ,(376, 367) ,(382, 366) ,(390, 367) ,(397, 369) ,(403, 371) ,(410, 373) ,(411, 379) ,(416, 381) ,(419, 385) ,(421, 392) ,(425, 391) ,(427, 387) ,(430, 382) ,(433, 376) ,(434, 371) ,(431, 376) ,(425, 372) ,(418, 370) ,(413, 368) ,(406, 366) ,(401, 366) ,(396, 366) ,(391, 363) ,(382, 361) ,(379, 358) ,(370, 358) ,(364, 357) ,(355, 355)]
        self.c =[(518, 239) ,(523, 239) ,(523, 245) ,(522, 249) ,(520, 254) ,(518, 260) ,(515, 266) ,(513, 260) ,(514, 257) ,(514, 250) ,(514, 247) ,(515, 244) ,(516, 240) ,(517, 239)]
        self.neck =[(283, 346) ,(279, 354) ,(277, 366) ,(278, 373) ,(280, 382) ,(283, 388) ,(286, 392) ,(292, 398) ,(301, 404) ,(308, 410) ,(318, 417) ,(333, 421) ,(324, 390) ,(314, 380) ,(294, 357) ,(285, 345) ,(283, 345)]
        self.collar =[(283, 340) ,(284, 344) ,(278, 344) ,(276, 349) ,(273, 353) ,(272, 357) ,(269, 363) ,(266, 371) ,(264, 377) ,(262, 386) ,(261, 395) ,(260, 402) ,(259, 410) ,(259, 418) ,(259, 425) ,(264, 432) ,(270, 441) ,(274, 448) ,(280, 456) ,(286, 464) ,(293, 473) ,(298, 478) ,(302, 485) ,(308, 493) ,(311, 495) ,(315, 489) ,(318, 482) ,(323, 476) ,(330, 467) ,(337, 458) ,(344, 450) ,(347, 442) ,(334, 428) ,(319, 417) ,(314, 414) ,(307, 409) ,(300, 403) ,(293, 398) ,(286, 392) ,(281, 384) ,(278, 379) ,(278, 372) ,(278, 366) ,(280, 357) ,(281, 351) ,(283, 345)]
        self.collar2 =[(416, 451) ,(422, 460) ,(428, 467) ,(437, 476) ,(446, 484) ,(454, 494) ,(458, 489) ,(461, 481) ,(467, 469) ,(472, 458) ,(479, 447) ,(485, 436) ,(489, 426) ,(490, 411) ,(487, 401) ,(485, 392) ,(481, 382) ,(479, 376) ,(474, 375) ,(469, 377) ,(466, 387) ,(457, 397) ,(450, 404) ,(443, 414) ,(435, 425) ,(423, 431) ,(417, 436) ,(410, 447) ,(416, 451)]
        self.shirt =[(476, 375) ,(483, 381) ,(492, 382) ,(499, 386) ,(507, 388) ,(515, 388) ,(523, 391) ,(533, 396) ,(543, 399) ,(555, 403) ,(569, 408) ,(580, 411) ,(592, 414) ,(600, 419) ,(610, 423) ,(620, 429) ,(628, 433) ,(639, 440) ,(646, 448) ,(663, 456) ,(673, 464) ,(681, 470) ,(685, 477) ,(697, 491) ,(702, 503) ,(709, 516) ,(713, 529) ,(714, 538) ,(718, 550) ,(706, 561) ,(691, 561) ,(646, 561) ,(601, 561) ,(162, 560) ,(137, 561) ,(85, 560) ,(64, 560) ,(51, 560) ,(42, 559) ,(34, 559) ,(32, 559) ,(32, 556) ,(33, 549) ,(35, 535) ,(40, 525) ,(45, 516) ,(48, 510) ,(51, 504) ,(55, 499) ,(61, 491) ,(70, 481) ,(77, 477) ,(84, 470) ,(94, 464) ,(108, 457) ,(121, 453) ,(132, 447) ,(148, 438) ,(168, 429) ,(190, 419) ,(203, 412) ,(216, 406) ,(228, 401) ,(237, 397) ,(250, 392) ,(258, 389) ,(263, 387) ,(259, 407) ,(259, 417) ,(262, 433) ,(273, 448) ,(284, 463) ,(297, 479) ,(303, 486) ,(320, 475) ,(331, 462) ,(359, 469) ,(395, 466) ,(408, 460) ,(439, 451) ,(459, 425) ,(471, 409) ,(477, 388) ,(478, 374)]
        self.collarbg1 =[(282, 343) ,(276, 350) ,(273, 360) ,(270, 367) ,(267, 381) ,(264, 394) ,(264, 402) ,(263, 414) ,(264, 425) ,(270, 434) ,(277, 444) ,(285, 453) ,(293, 463) ,(299, 472) ,(306, 484) ,(310, 487) ,(317, 479) ,(322, 470) ,(329, 459) ,(335, 449) ,(330, 442) ,(322, 436) ,(322, 423) ,(309, 412) ,(301, 409) ,(288, 400) ,(279, 386) ,(277, 372) ,(276, 359) ,(281, 344)]
        self.collarbg2 =[(422, 451) ,(427, 458) ,(433, 465) ,(440, 473) ,(447, 478) ,(455, 486) ,(463, 475) ,(470, 457) ,(483, 434) ,(486, 422) ,(485, 410) ,(483, 394) ,(479, 383) ,(477, 381) ,(470, 389) ,(464, 399) ,(456, 410) ,(451, 417) ,(446, 423) ,(434, 435) ,(429, 443) ,(421, 453)]
        self.tie =[(329, 466) ,(333, 459) ,(340, 452) ,(347, 445) ,(362, 449) ,(380, 448) ,(407, 442) ,(414, 453) ,(418, 458) ,(419, 465) ,(413, 473) ,(410, 478) ,(404, 485) ,(406, 495) ,(413, 499) ,(419, 501) ,(425, 502) ,(429, 511) ,(433, 520) ,(438, 530) ,(441, 539) ,(448, 545) ,(456, 555) ,(462, 559) ,(449, 560) ,(421, 561) ,(388, 553) ,(385, 544) ,(381, 534) ,(378, 522) ,(376, 512) ,(375, 501) ,(373, 497) ,(370, 493) ,(359, 485) ,(348, 478) ,(340, 474) ,(329, 466)]
        self.d1 =[(315, 491) ,(318, 485) ,(320, 481) ,(325, 472) ,(330, 468) ,(340, 473) ,(349, 479) ,(356, 484) ,(366, 490) ,(374, 496) ,(375, 507) ,(377, 522) ,(380, 529) ,(383, 536) ,(386, 545) ,(389, 554) ,(393, 560) ,(382, 561) ,(374, 561) ,(364, 554) ,(362, 541) ,(363, 528) ,(364, 519) ,(364, 504) ,(364, 492) ,(356, 489) ,(357, 511) ,(352, 507) ,(342, 503) ,(335, 499) ,(325, 495) ,(314, 491)]
        self.d2 =[(109, 560) ,(104, 544) ,(99, 531) ,(91, 510) ,(89, 495) ,(103, 484) ,(120, 476) ,(135, 471) ,(156, 460) ,(170, 456) ,(179, 447) ,(192, 442) ,(203, 435) ,(213, 424) ,(219, 416) ,(238, 411) ,(239, 417) ,(240, 421) ,(248, 419) ,(258, 416) ,(261, 428) ,(267, 440) ,(276, 451) ,(283, 463) ,(292, 472) ,(300, 486) ,(308, 493) ,(313, 496) ,(316, 492) ,(328, 495) ,(339, 502) ,(348, 505) ,(356, 510) ,(356, 489) ,(363, 492) ,(364, 510) ,(362, 526) ,(363, 541) ,(363, 549) ,(363, 560) ,(338, 560) ,(313, 560) ,(294, 560) ,(238, 560) ,(216, 560) ,(206, 561) ,(197, 550) ,(185, 538) ,(163, 518) ,(141, 508) ,(150, 521) ,(155, 533) ,(163, 544) ,(172, 559) ,(169, 560) ,(151, 543) ,(161, 560) ,(153, 560) ,(132, 561) ,(113, 561) ,(107, 559)]
        self.d3 =[(72, 499) ,(80, 512) ,(85, 528) ,(90, 544) ,(73, 561) ,(72, 540) ,(73, 517) ,(72, 498)]
        self.d4 =[(412, 455) ,(417, 459) ,(417, 470) ,(409, 480) ,(404, 487) ,(406, 492) ,(411, 497) ,(419, 493) ,(426, 491) ,(440, 489) ,(446, 492) ,(454, 493) ,(447, 489) ,(439, 478) ,(433, 471) ,(428, 465) ,(422, 458) ,(417, 453) ,(413, 454) ,(413, 456)]
        self.d5 =[(486, 389) ,(489, 392) ,(492, 392) ,(497, 391) ,(504, 396) ,(512, 402) ,(523, 406) ,(531, 409) ,(546, 413) ,(552, 417) ,(543, 419) ,(527, 422) ,(514, 429) ,(506, 437) ,(519, 434) ,(531, 433) ,(495, 450) ,(527, 438) ,(512, 446) ,(527, 441) ,(539, 438) ,(556, 436) ,(567, 436) ,(578, 438) ,(587, 439) ,(599, 444) ,(618, 449) ,(634, 452) ,(648, 461) ,(659, 470) ,(670, 476) ,(682, 486) ,(672, 476) ,(682, 484) ,(689, 490) ,(695, 500) ,(697, 506) ,(701, 515) ,(703, 525) ,(710, 538) ,(711, 549) ,(714, 558) ,(701, 559) ,(691, 559) ,(680, 559) ,(668, 560) ,(654, 560) ,(648, 560) ,(635, 560) ,(616, 558) ,(599, 560) ,(582, 560) ,(569, 560) ,(554, 560) ,(530, 559) ,(510, 559) ,(492, 559) ,(464, 558) ,(456, 554) ,(449, 548) ,(443, 537) ,(435, 524) ,(431, 514) ,(426, 504) ,(417, 502) ,(412, 497) ,(427, 491) ,(432, 491) ,(441, 490) ,(451, 496) ,(457, 494) ,(461, 486) ,(464, 478) ,(470, 470) ,(475, 458) ,(481, 445) ,(488, 432) ,(489, 418) ,(489, 410) ,(486, 397) ,(488, 388)]
        self.d6 =[(374, 497) ,(377, 494) ,(381, 491) ,(386, 487) ,(393, 486) ,(400, 486)]
        self.d7 =[(179, 451) ,(190, 445) ,(205, 439) ,(241, 424) ,(246, 425) ,(253, 427) ,(259, 426) ,(261, 432) ,(266, 436) ,(271, 444) ,(276, 451) ,(282, 459) ,(287, 465) ,(283, 465) ,(272, 461) ,(267, 459) ,(257, 454) ,(263, 453) ,(268, 451) ,(272, 447) ,(268, 443) ,(265, 439) ,(263, 437) ,(257, 437) ,(251, 437) ,(241, 434) ,(238, 434) ,(240, 428) ,(239, 428) ,(232, 436) ,(218, 446) ,(207, 450) ,(199, 452) ,(185, 452) ,(179, 452)]
        self.d8 =[(361, 539) ,(354, 533) ,(344, 528) ,(334, 524) ,(321, 520) ,(304, 514) ,(289, 509) ,(275, 507) ,(250, 499) ,(265, 506) ,(284, 511) ,(297, 518) ,(244, 507) ,(261, 514) ,(273, 519) ,(288, 522) ,(300, 527) ,(315, 530) ,(330, 532) ,(330, 532) ,(347, 538) ,(361, 540)]
        self.pen = tu.Turtle()
        self.pen.speed(0)
        self.x_offset = 400
        self.y_offset = 300


    def go(self, x, y):
        self.pen.penup()
        self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset)
        self.pen.pendown()  


    def paint(self,coord,co=(0,0,0)):
        self.pen.color(co)
        t_x,t_y = coord[0]
        self.go(t_x,t_y)
        self.pen.fillcolor(co)
        self.pen.begin_fill()
        t = 0
        for i in coord[1:]:
            print(i)
            x,y = i
            if t:
                self.go(x,y)
                t = 0
                self.pen.begin_fill()
                continue
            if x == -1 and y == -1:
                t = 1
                self.pen.end_fill()
                continue
            else:
                self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset) 
        self.pen.end_fill()


    def draw_fn(self,coord,mode = 1,co = (0,0,0),thickness = 1):
        co = (co[0]/255,co[1]/255,co[2]/255)

        self.pen.color(co)

        if mode:
            self.pen.width(thickness)
            t_x,t_y = coord[0]
            self.go(t_x,t_y)
            t = 0
            for i in coord[1:]:
                print(i)
                x,y = i
                if t:
                    self.go(x,y)
                    t = 0
                    continue
                if x == -1 and y == -1:
                    t = 1
                    continue
                else:
                    self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset)
        else:
            self.paint(coord=coord,co = co)

    
    def draw(self,retain=True):
        self.draw_fn(self.face1,co = (240, 195, 190),mode = 0)
        self.draw_fn(self.yy,co = (238, 157, 128),mode = 0)
        self.draw_fn(self.yyy,co = (238, 157, 128),mode = 0)
        self.draw_fn(self.nlm,co = (209, 133, 101),mode = 1,thickness=3)
        self.draw_fn(self.nl,co = (175, 94, 65),mode = 1,thickness=3)
        self.draw_fn(self.face2,co = (246, 174, 146),mode = 0)
        self.draw_fn(self.face3,co = (241, 157, 121),mode = 0)
        self.draw_fn(self.face4,co = (209, 128, 106),mode = 0)
        self.draw_fn(self.face5,co = (228, 147, 126),mode = 0)
        self.draw_fn(self.k,co = (140, 63, 37),mode = 0)
        self.draw_fn(self.nose1,co = (19, 0, 0),mode = 0,thickness=3)
        self.draw_fn(self.sunglassescolor,co = (71, 95, 97),mode = 0)
        self.draw_fn(self.sunglassescolor2,co = (71, 95, 97),mode = 0)
        self.draw_fn(self.eyebrow1,co = (30, 24, 24),mode = 0)
        self.draw_fn(self.eyebrow2,co = (30, 24, 24),mode = 0)
        self.draw_fn(self.sunglassesborder,co = (236, 225, 226),mode = 1,thickness=3)
        self.draw_fn(self.sunl2,co = (236, 225, 226),mode = 1,thickness=3)
        self.draw_fn(self.ear1,co = (247, 177, 157),mode = 0)
        self.draw_fn(self.ear10,co = (109, 27, 1),mode = 0)
        self.draw_fn(self.ear12,co = (109, 27, 1),mode = 0)
        self.draw_fn(self.ear2,co = (247, 177, 157),mode = 0)
        self.draw_fn(self.c,co = (152, 53, 17),mode = 0)
        self.draw_fn(self.sunl,co = (236, 225, 226),mode = 1,thickness=3)
        self.draw_fn(self.shirt,co = (241, 244, 253),mode = 0)
        self.draw_fn(self.tie,co = (174, 195, 238),mode = 0)
        self.draw_fn(self.d6,co = (124, 144, 194),mode = 1,thickness=3)
        self.draw_fn(self.d1,co = (125, 144, 203),mode = 0)
        self.draw_fn(self.d2,co = (214, 226, 248),mode = 0)
        self.draw_fn(self.d3,co = (214, 226, 248),mode = 0)
        self.draw_fn(self.d4,co = (125, 144, 203),mode = 0)
        self.draw_fn(self.d5,co = (214, 226, 248),mode = 0)
        self.draw_fn(self.d7,co = (125, 143, 202),mode = 0)
        self.draw_fn(self.d8,co = (125, 144, 203),mode = 0)
        self.draw_fn(self.collar,co = (241, 242, 255),mode = 0)
        self.draw_fn(self.collarbg1,co = (174, 195, 238),mode = 0)
        self.draw_fn(self.collar2,co = (241, 242, 255),mode = 0)
        self.draw_fn(self.collarbg2,co = (174, 195, 238),mode = 0)
        self.draw_fn(self.neck,co = (209, 129, 106),mode = 0)
        self.draw_fn(self.hairbeard,co = (34, 20, 20),mode = 0)
        self.draw_fn(self.j,co = (212, 133, 104),mode = 0)
        self.draw_fn(self.s,co = (213, 209, 209),mode = 1,thickness=4)
        self.draw_fn(self.hairbg,co = (0, 0, 0),mode = 0)
        self.draw_fn(self.lips1,co = (153, 48, 45),mode = 0)
        self.draw_fn(self.h,co = (43, 6, 7),mode = 1,thickness=3)
        self.draw_fn(self.m,co = (137, 35, 30),mode = 0)
        
        

        if retain:
            tu.done()

pen=googlemapslogo()
pen.draw()

&lt;/code&gt;&lt;/pre&gt;

Output/Result :
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVWEzmKdSjBgPT6tuQoOZ0xLu_BRJ7PJShtHhFDlxIfXoCb7pdlTiftrHij_K-OMQH9KkU-2SzBuAtkKZ3mE5Dn8BjRQhN2iqZ4-1HY3OX7PvEqpmpXuVyy6TnOPjDI3iZap4FtKxIr68jcjW_Mmrw1pI8FuQU4az6LCYm888wbZDzV7znUFj5rD-_/s657/IMG_20220425_001325.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;599&quot; data-original-width=&quot;657&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVWEzmKdSjBgPT6tuQoOZ0xLu_BRJ7PJShtHhFDlxIfXoCb7pdlTiftrHij_K-OMQH9KkU-2SzBuAtkKZ3mE5Dn8BjRQhN2iqZ4-1HY3OX7PvEqpmpXuVyy6TnOPjDI3iZap4FtKxIr68jcjW_Mmrw1pI8FuQU4az6LCYm888wbZDzV7znUFj5rD-_/s320/IMG_20220425_001325.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/5741519679660290921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2022/04/jr-ntr-drawing-using-python-turtle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/5741519679660290921'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/5741519679660290921'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2022/04/jr-ntr-drawing-using-python-turtle.html' title='Jr. NTR Drawing using Python Turtle Graphics'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVWEzmKdSjBgPT6tuQoOZ0xLu_BRJ7PJShtHhFDlxIfXoCb7pdlTiftrHij_K-OMQH9KkU-2SzBuAtkKZ3mE5Dn8BjRQhN2iqZ4-1HY3OX7PvEqpmpXuVyy6TnOPjDI3iZap4FtKxIr68jcjW_Mmrw1pI8FuQU4az6LCYm888wbZDzV7znUFj5rD-_/s72-c/IMG_20220425_001325.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-4071544074855069738</id><published>2022-04-23T03:52:00.003-07:00</published><updated>2022-04-26T08:17:24.162-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Rocking Star YASH Drawing using Python Turtle Graphics</title><content type='html'>Rocking Star YASH Drawing using Python Turtle Graphics | Rocky Bhai | KGF Chapter 2 | Python Programming |&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Note : If you are facing any issues to copy this code then click select all while copying the code. After that extract the code from the copied text. {Your mobile may lag for 3-5 seconds when you hold the code to copy,it is because the coordinates in the code are so long. Don&#39;t worry just wait 3-5 seconds after holding the text and click select all and copy the full page and paste it to your editor and from there copy the code}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Source Code :&lt;div&gt;&lt;pre&gt;&lt;code&gt;
import turtle as tu

class rockingstaryash:
    def __init__(self):
        self.r =[(12, 336) ,(17, 296) ,(27, 236) ,(34, 186) ,(41, 141) ,(54, 75) ,(117, 76) ,(132, 82) ,(143, 94) ,(149, 114) ,(149, 137) ,(145, 156) ,(141, 171) ,(136, 183) ,(123, 199) ,(102, 210) ,(106, 230) ,(110, 248) ,(115, 270) ,(120, 290) ,(125, 309) ,(129, 336) ,(94, 338) ,(65, 210) ,(46, 336) ,(12, 336)]
        self.r1 =[(83, 104) ,(80, 123) ,(76, 145) ,(73, 164) ,(72, 179) ,(68, 191) ,(79, 190) ,(92, 184) ,(100, 173) ,(107, 156) ,(110, 139) ,(112, 128) ,(110, 119) ,(101, 108) ,(89, 106) ,(82, 105) ,(82, 104)]
        self.o =[(285, 77) ,(264, 73) ,(239, 75) ,(221, 82) ,(206, 95) ,(193, 118) ,(185, 139) ,(176, 170) ,(168, 209) ,(165, 245) ,(163, 270) ,(164, 289) ,(169, 310) ,(176, 322) ,(184, 331) ,(192, 333) ,(200, 326) ,(200, 317) ,(192, 298) ,(186, 283) ,(186, 273) ,(186, 255) ,(189, 238) ,(191, 215) ,(191, 197) ,(195, 158) ,(218, 126) ,(239, 103) ,(263, 103) ,(287, 89) ,(286, 77)]
        self.c =[(411, 74) ,(420, 71) ,(435, 71) ,(446, 73) ,(454, 74) ,(464, 79) ,(461, 101) ,(440, 91) ,(420, 84) ,(407, 76) ,(411, 74)]
        self.k =[(483, 121) ,(486, 104) ,(488, 85) ,(489, 75) ,(507, 75) ,(524, 76) ,(523, 88) ,(521, 104) ,(518, 121) ,(515, 138) ,(513, 151) ,(512, 161) ,(510, 174) ,(510, 184) ,(510, 193) ,(522, 172) ,(534, 150) ,(548, 125) ,(558, 106) ,(568, 89) ,(575, 76) ,(590, 76) ,(611, 76) ,(600, 95) ,(588, 117) ,(572, 144) ,(557, 170) ,(545, 190) ,(538, 201) ,(544, 224) ,(551, 248) ,(560, 282) ,(567, 314) ,(573, 336) ,(531, 336) ,(520, 313) ,(520, 282) ,(516, 250) ,(509, 215) ,(509, 199) ,(512, 192)]
        self.y =[(618, 76) ,(621, 97) ,(626, 127) ,(634, 165) ,(640, 193) ,(645, 224) ,(639, 257) ,(635, 283) ,(632, 310) ,(628, 334) ,(646, 335) ,(661, 336) ,(668, 307) ,(671, 275) ,(679, 232) ,(681, 220) ,(692, 200) ,(707, 171) ,(720, 145) ,(730, 122) ,(742, 94) ,(752, 75) ,(735, 74) ,(716, 76) ,(704, 102) ,(694, 127) ,(686, 148) ,(677, 167) ,(669, 192) ,(663, 154) ,(660, 124) ,(656, 92) ,(655, 74) ,(637, 75) ,(618, 76)]
        self.facecolor =[(251, 299) ,(257, 291) ,(263, 279) ,(268, 264) ,(272, 248) ,(275, 236) ,(278, 228) ,(278, 220) ,(275, 215) ,(279, 210) ,(287, 204) ,(297, 200) ,(311, 204) ,(319, 208) ,(329, 210) ,(343, 212) ,(359, 212) ,(373, 211) ,(387, 214) ,(395, 219) ,(405, 226) ,(413, 234) ,(423, 240) ,(433, 245) ,(445, 248) ,(447, 252) ,(451, 259) ,(455, 266) ,(460, 271) ,(466, 278) ,(469, 286) ,(469, 300) ,(471, 312) ,(473, 322) ,(479, 336) ,(483, 346) ,(489, 351) ,(489, 360) ,(489, 366) ,(488, 375) ,(485, 384) ,(487, 393) ,(487, 405) ,(486, 414) ,(480, 422) ,(471, 429) ,(465, 432) ,(458, 436) ,(451, 437) ,(448, 434) ,(441, 428) ,(438, 423) ,(431, 417) ,(426, 416) ,(417, 415) ,(405, 413) ,(400, 412) ,(393, 407) ,(392, 403) ,(398, 395) ,(388, 396) ,(380, 402) ,(375, 408) ,(369, 410) ,(364, 410) ,(358, 410) ,(349, 410) ,(340, 414) ,(329, 420) ,(317, 425) ,(309, 431) ,(303, 438) ,(295, 451) ,(288, 453) ,(281, 453) ,(269, 451) ,(261, 448) ,(258, 441) ,(256, 437) ,(249, 428) ,(248, 417) ,(247, 405) ,(244, 390) ,(243, 379) ,(247, 361) ,(247, 351) ,(246, 332) ,(247, 325) ,(247, 310) ,(251, 301)]
        self.facecolor1 =[(264, 302) ,(270, 292) ,(272, 287) ,(273, 282) ,(280, 271) ,(286, 261) ,(288, 252) ,(279, 263) ,(284, 245) ,(288, 234) ,(295, 226) ,(305, 222) ,(316, 223) ,(331, 220) ,(342, 220) ,(358, 218) ,(375, 220) ,(391, 226) ,(403, 236) ,(413, 244) ,(422, 252) ,(413, 249) ,(399, 246) ,(409, 254) ,(417, 256) ,(404, 256) ,(394, 257) ,(389, 266) ,(381, 275) ,(381, 286) ,(381, 297) ,(389, 305) ,(380, 310) ,(377, 316) ,(379, 325) ,(373, 319) ,(368, 326) ,(368, 338) ,(368, 350) ,(369, 360) ,(369, 372) ,(369, 387) ,(369, 398) ,(369, 404) ,(361, 405) ,(358, 395) ,(358, 379) ,(358, 355) ,(358, 330) ,(358, 316) ,(355, 312) ,(344, 312) ,(342, 309) ,(340, 302) ,(340, 291) ,(334, 279) ,(326, 269) ,(316, 266) ,(308, 270) ,(293, 277) ,(282, 285) ,(275, 291) ,(269, 298) ,(264, 301)]
        self.facecolor2 =[(293, 447) ,(288, 430) ,(287, 407) ,(287, 382) ,(287, 365) ,(282, 360) ,(296, 353) ,(309, 345) ,(316, 342) ,(295, 340) ,(284, 335) ,(289, 336) ,(289, 336) ,(297, 338) ,(307, 337) ,(316, 335) ,(322, 333) ,(332, 331) ,(338, 329) ,(332, 325) ,(319, 319) ,(308, 318) ,(301, 318) ,(293, 321) ,(289, 323) ,(285, 327) ,(280, 331) ,(276, 338) ,(264, 347) ,(265, 335) ,(272, 316) ,(280, 309) ,(286, 306) ,(294, 306) ,(305, 307) ,(320, 308) ,(333, 308) ,(345, 318) ,(346, 328) ,(337, 340) ,(326, 352) ,(315, 363) ,(320, 362) ,(328, 359) ,(340, 351) ,(337, 364) ,(337, 374) ,(333, 378) ,(324, 384) ,(320, 391) ,(316, 397) ,(307, 410) ,(303, 420) ,(300, 431) ,(299, 438) ,(293, 446)]
        self.nose =[(313, 365) ,(325, 354) ,(342, 337) ,(349, 324) ,(342, 314) ,(331, 308) ,(348, 311) ,(357, 312) ,(357, 326) ,(356, 344) ,(357, 364) ,(357, 380) ,(359, 395) ,(361, 405) ,(368, 406) ,(369, 386) ,(367, 361) ,(367, 346) ,(368, 330) ,(371, 318) ,(379, 326) ,(387, 335) ,(398, 343) ,(406, 348) ,(420, 356) ,(410, 368) ,(403, 368) ,(395, 361) ,(390, 349) ,(384, 339) ,(375, 329) ,(373, 326) ,(373, 345) ,(374, 360) ,(373, 374) ,(374, 385) ,(375, 389) ,(377, 384) ,(382, 378) ,(387, 373) ,(392, 370) ,(397, 370) ,(399, 375) ,(401, 382) ,(402, 389) ,(399, 394) ,(392, 395) ,(384, 399) ,(379, 401) ,(374, 406) ,(369, 410) ,(361, 409) ,(354, 404) ,(348, 402) ,(341, 402) ,(336, 404) ,(330, 403) ,(329, 395) ,(330, 390) ,(338, 379) ,(336, 369) ,(338, 360) ,(338, 354) ,(326, 361) ,(315, 366)]
        self.nose1 =[(334, 404) ,(339, 404) ,(344, 403) ,(349, 404) ,(355, 407) ,(360, 410) ,(365, 412) ,(372, 409) ,(378, 405) ,(383, 401) ,(390, 398) ,(397, 395)]
        self.facecolor3 =[(372, 325) ,(372, 335) ,(372, 348) ,(372, 363) ,(373, 376) ,(373, 386) ,(381, 379) ,(387, 371) ,(393, 368) ,(397, 368) ,(404, 374) ,(411, 381) ,(416, 390) ,(421, 396) ,(426, 404) ,(429, 409) ,(432, 413) ,(439, 411) ,(446, 413) ,(452, 420) ,(454, 427) ,(456, 434) ,(464, 433) ,(472, 430) ,(478, 422) ,(480, 412) ,(479, 398) ,(477, 378) ,(470, 349) ,(470, 355) ,(465, 365) ,(461, 373) ,(458, 386) ,(449, 380) ,(437, 370) ,(431, 365) ,(423, 355) ,(418, 360) ,(411, 367) ,(404, 369) ,(394, 359) ,(390, 348) ,(387, 340) ,(381, 334) ,(374, 325)]
        self.facecolor4 =[(401, 304) ,(408, 297) ,(413, 293) ,(398, 296) ,(390, 303) ,(381, 310) ,(375, 318) ,(379, 326) ,(389, 336) ,(396, 342) ,(405, 351) ,(413, 354) ,(421, 358) ,(427, 352) ,(421, 344) ,(430, 341) ,(442, 334) ,(429, 334) ,(412, 330) ,(409, 326) ,(420, 326) ,(433, 325) ,(449, 318) ,(439, 310) ,(423, 307) ,(410, 310) ,(402, 314) ,(394, 319) ,(390, 324) ,(399, 324) ,(406, 326) ,(411, 327)]
        self.eyebrowline =[(276, 329) ,(281, 323) ,(289, 318) ,(300, 316) ,(309, 315) ,(318, 315) ,(326, 317) ,(332, 320)]
        self.eyebrowline2 =[(393, 314) ,(400, 309) ,(407, 305) ,(418, 304) ,(430, 303) ,(436, 305) ,(446, 309) ,(455, 312)]
        self.ear1 =[(237, 356) ,(230, 359) ,(224, 362) ,(222, 367) ,(225, 377) ,(230, 384) ,(234, 390) ,(234, 400) ,(234, 409) ,(238, 417) ,(243, 423) ,(243, 416) ,(239, 407) ,(239, 400) ,(241, 391) ,(245, 382) ,(243, 372) ,(240, 364) ,(238, 356)]
        self.ear2 =[(226, 360) ,(225, 366) ,(226, 372) ,(231, 374) ,(233, 381) ,(235, 371) ,(235, 361) ,(238, 355) ,(231, 357) ,(226, 361)]
        self.ear3 =[(502, 353) ,(503, 362) ,(500, 371) ,(499, 379) ,(501, 385) ,(504, 388) ,(503, 377) ,(507, 369) ,(508, 363) ,(506, 359) ,(505, 355) ,(503, 353)]
        self.beard =[(326, 451) ,(330, 459) ,(337, 464) ,(346, 468) ,(355, 469) ,(368, 469) ,(381, 468) ,(395, 464) ,(406, 458) ,(412, 451) ,(411, 459) ,(413, 468) ,(419, 475) ,(417, 480) ,(405, 486) ,(390, 486) ,(378, 483) ,(371, 476) ,(362, 477) ,(351, 485) ,(345, 496) ,(334, 495) ,(322, 495) ,(317, 478) ,(316, 469) ,(323, 452)]
        self.shirt =[(223, 439) ,(210, 442) ,(195, 448) ,(177, 457) ,(160, 469) ,(143, 480) ,(123, 487) ,(104, 495) ,(87, 504) ,(71, 518) ,(61, 537) ,(51, 558) ,(40, 582) ,(33, 600) ,(23, 625) ,(20, 650) ,(19, 671) ,(12, 686) ,(11, 693) ,(23, 693) ,(40, 695) ,(55, 694) ,(77, 694) ,(93, 692) ,(114, 692) ,(146, 694) ,(177, 693) ,(246, 693) ,(361, 692) ,(501, 694) ,(565, 692) ,(635, 689) ,(710, 691) ,(750, 689) ,(744, 534) ,(727, 512) ,(710, 496) ,(695, 488) ,(667, 475) ,(642, 464) ,(616, 455) ,(596, 445) ,(576, 440) ,(552, 433) ,(522, 425) ,(514, 442) ,(506, 462) ,(502, 488) ,(494, 496) ,(490, 508) ,(485, 526) ,(478, 540) ,(467, 556) ,(454, 572) ,(436, 589) ,(421, 600) ,(401, 607) ,(379, 611) ,(360, 606) ,(337, 592) ,(321, 577) ,(319, 563) ,(302, 548) ,(289, 530) ,(274, 511) ,(261, 483) ,(251, 461) ,(232, 446) ,(228, 441) ,(222, 437)]
        self.shirt1 =[(19, 692) ,(16, 677) ,(14, 650) ,(14, 647) ,(23, 659) ,(31, 676) ,(34, 660) ,(32, 641) ,(32, 634) ,(41, 650) ,(46, 665) ,(54, 681) ,(62, 689) ,(73, 692) ,(80, 690) ,(72, 676) ,(56, 656) ,(45, 624) ,(45, 615) ,(59, 641) ,(73, 655) ,(79, 649) ,(70, 629) ,(70, 609) ,(70, 594) ,(79, 613) ,(86, 645) ,(96, 666) ,(102, 684) ,(106, 688) ,(114, 688) ,(121, 688) ,(118, 663) ,(100, 622) ,(82, 571) ,(73, 542) ,(85, 551) ,(99, 553) ,(112, 565) ,(121, 576) ,(132, 591) ,(134, 573) ,(112, 512) ,(147, 574) ,(157, 606) ,(168, 640) ,(172, 670) ,(177, 684) ,(179, 692) ,(189, 692) ,(195, 690) ,(187, 644) ,(164, 592) ,(147, 534) ,(134, 501) ,(149, 511) ,(166, 515) ,(180, 519) ,(191, 525) ,(194, 550) ,(190, 575) ,(192, 597) ,(194, 616) ,(201, 597) ,(202, 583) ,(196, 553) ,(196, 530) ,(194, 509) ,(183, 486) ,(179, 466) ,(195, 462) ,(205, 455) ,(211, 452) ,(222, 465) ,(228, 478) ,(228, 495) ,(228, 503) ,(241, 504) ,(250, 500) ,(258, 524) ,(266, 544) ,(274, 557) ,(288, 567) ,(303, 585) ,(318, 607) ,(330, 622) ,(343, 639) ,(358, 656) ,(383, 672) ,(405, 680) ,(413, 680) ,(420, 678) ,(429, 674) ,(423, 665) ,(387, 659) ,(403, 650) ,(405, 634) ,(400, 627) ,(402, 610) ,(414, 610) ,(431, 597) ,(447, 586) ,(456, 574) ,(468, 559) ,(485, 538) ,(496, 519) ,(498, 499) ,(502, 493) ,(504, 480) ,(517, 466) ,(525, 460) ,(532, 451) ,(532, 465) ,(531, 487) ,(531, 514) ,(535, 514) ,(547, 495) ,(553, 473) ,(553, 456) ,(554, 446) ,(562, 469) ,(563, 487) ,(556, 512) ,(560, 546) ,(570, 532) ,(577, 505) ,(587, 491) ,(600, 484) ,(611, 482) ,(623, 483) ,(636, 481) ,(646, 482) ,(651, 483) ,(659, 486) ,(647, 492) ,(619, 495) ,(614, 507) ,(597, 520) ,(596, 528) ,(592, 540) ,(588, 562) ,(589, 571) ,(594, 584) ,(595, 606) ,(598, 617) ,(600, 642) ,(608, 637) ,(617, 614) ,(623, 595) ,(634, 565) ,(651, 537) ,(655, 528) ,(670, 515) ,(683, 514) ,(692, 511) ,(710, 512) ,(693, 503) ,(684, 495) ,(697, 489) ,(708, 484) ,(720, 493) ,(723, 495) ,(735, 504) ,(755, 517) ,(752, 538) ,(752, 559) ,(749, 573) ,(735, 587) ,(722, 597) ,(700, 611) ,(712, 590) ,(714, 570) ,(714, 566) ,(695, 569) ,(688, 600) ,(686, 617) ,(682, 631) ,(681, 652) ,(698, 645) ,(704, 627) ,(721, 608) ,(740, 591) ,(749, 591) ,(742, 613) ,(725, 635) ,(717, 647) ,(710, 667) ,(738, 659) ,(742, 658) ,(720, 672) ,(719, 685) ,(751, 675) ,(746, 686) ,(695, 687) ,(668, 690) ,(614, 686) ,(566, 686) ,(511, 690) ,(481, 691) ,(430, 689) ,(358, 680) ,(325, 688) ,(273, 686) ,(233, 684) ,(191, 689) ,(164, 683) ,(162, 689) ,(140, 690) ,(113, 684) ,(80, 686) ,(47, 692) ,(32, 691) ,(11, 685)]
        self.shirt2 =[(20, 686) ,(23, 679) ,(23, 657) ,(39, 677) ,(42, 679) ,(43, 659) ,(45, 637) ,(54, 645) ,(69, 668) ,(78, 677) ,(87, 686) ,(88, 674) ,(83, 641) ,(81, 625) ,(81, 608) ,(83, 586) ,(85, 580) ,(90, 607) ,(99, 630) ,(124, 664) ,(132, 671) ,(132, 653) ,(125, 618) ,(114, 600) ,(103, 580) ,(138, 622) ,(146, 637) ,(152, 660) ,(155, 663) ,(157, 636) ,(157, 629) ,(149, 586) ,(148, 579) ,(145, 573) ,(187, 623) ,(206, 650) ,(238, 684) ,(234, 678) ,(228, 643) ,(228, 610) ,(228, 583) ,(218, 529) ,(209, 504) ,(229, 522) ,(249, 562) ,(258, 613) ,(260, 631) ,(265, 654) ,(273, 676) ,(274, 679) ,(278, 678) ,(285, 641) ,(282, 620) ,(279, 593) ,(256, 550) ,(281, 613) ,(293, 640) ,(301, 656) ,(321, 674) ,(323, 680) ,(344, 686) ,(358, 688) ,(386, 684) ,(428, 688) ,(430, 670) ,(419, 632) ,(420, 621) ,(456, 658) ,(457, 663) ,(462, 670) ,(470, 639) ,(469, 619) ,(456, 594) ,(477, 614) ,(492, 647) ,(497, 654) ,(501, 663) ,(514, 645) ,(517, 609) ,(518, 580) ,(519, 542) ,(529, 558) ,(539, 650) ,(539, 665) ,(552, 596) ,(565, 565) ,(583, 536) ,(608, 522) ,(631, 514) ,(613, 542) ,(591, 600) ,(587, 640) ,(591, 647) ,(597, 665) ,(601, 666) ,(620, 643) ,(627, 614) ,(629, 590) ,(625, 528) ,(615, 490) ,(671, 551) ,(679, 605) ,(671, 636) ,(670, 656) ,(675, 656) ,(693, 599) ,(695, 572) ,(691, 538) ,(681, 519) ,(698, 550) ,(715, 608) ,(727, 659) ,(723, 679) ,(721, 686) ,(692, 686) ,(675, 683) ,(634, 685) ,(589, 685) ,(547, 681) ,(476, 681) ,(414, 680) ,(363, 680) ,(315, 673) ,(244, 673) ,(208, 677) ,(135, 677) ,(95, 677) ,(49, 677) ,(21, 676)]
        self.beard1 =[(327, 452) ,(321, 458) ,(315, 466) ,(316, 473) ,(319, 479) ,(320, 487) ,(322, 478) ,(323, 490) ,(327, 482) ,(328, 490) ,(324, 497) ,(336, 488) ,(335, 494) ,(342, 484) ,(343, 492) ,(351, 484) ,(354, 479) ,(350, 480) ,(358, 477) ,(365, 476) ,(371, 473) ,(376, 479) ,(380, 484) ,(380, 479) ,(385, 484) ,(395, 487) ,(390, 478) ,(398, 482) ,(398, 477) ,(405, 482) ,(410, 488) ,(408, 471) ,(414, 480) ,(413, 474) ,(419, 477) ,(411, 466) ,(412, 459) ,(405, 463) ,(403, 468) ,(397, 469) ,(391, 473) ,(383, 472) ,(369, 472) ,(358, 473) ,(349, 476) ,(343, 481) ,(336, 481) ,(331, 467) ,(341, 466) ,(334, 460) ,(326, 451)]
        self.neck =[(328, 581) ,(335, 590) ,(343, 596) ,(352, 603) ,(361, 608) ,(374, 612) ,(390, 611) ,(408, 605) ,(424, 597) ,(440, 586) ,(461, 562) ,(479, 539) ,(488, 520) ,(488, 506) ,(485, 494) ,(474, 514) ,(459, 532) ,(432, 553) ,(399, 569) ,(366, 575) ,(332, 573) ,(330, 578) ,(328, 581)]
        self.hair1 = [(182, 356) ,(193, 360) ,(205, 361) ,(220, 362) ,(229, 359) ,(235, 356) ,(235, 366) ,(236, 376) ,(237, 382) ,(237, 389) ,(241, 383) ,(241, 378) ,(244, 375) ,(242, 371) ,(240, 366) ,(240, 363) ,(244, 369) ,(248, 369) ,(246, 365) ,(245, 358) ,(246, 335) ,(247, 328) ,(253, 335) ,(249, 322) ,(248, 312) ,(249, 302) ,(255, 295) ,(261, 284) ,(267, 269) ,(270, 260) ,(273, 245) ,(277, 235) ,(279, 224) ,(277, 216) ,(285, 205) ,(296, 203) ,(307, 203) ,(303, 206) ,(312, 206) ,(325, 210) ,(338, 213) ,(349, 213) ,(363, 211) ,(385, 215) ,(403, 226) ,(419, 237) ,(433, 246) ,(446, 249) ,(454, 262) ,(463, 271) ,(469, 288) ,(471, 312) ,(478, 335) ,(485, 347) ,(488, 351) ,(488, 359) ,(490, 373) ,(486, 384) ,(487, 397) ,(487, 402) ,(491, 409) ,(484, 402) ,(487, 412) ,(478, 422) ,(472, 430) ,(471, 422) ,(466, 429) ,(461, 432) ,(459, 437) ,(453, 437) ,(446, 437) ,(438, 426) ,(431, 417) ,(414, 414) ,(400, 413) ,(389, 401) ,(398, 395) ,(390, 397) ,(380, 401) ,(373, 409) ,(367, 411) ,(358, 408) ,(347, 409) ,(326, 417) ,(336, 418) ,(326, 422) ,(321, 420) ,(314, 428) ,(311, 430) ,(311, 425) ,(305, 438) ,(303, 431) ,(301, 442) ,(296, 448) ,(291, 457) ,(293, 447) ,(287, 455) ,(289, 448) ,(283, 453) ,(279, 446) ,(280, 452) ,(274, 454) ,(270, 450) ,(266, 450) ,(270, 445) ,(261, 450) ,(265, 443) ,(257, 447) ,(261, 436) ,(261, 431) ,(255, 434) ,(254, 428) ,(250, 428) ,(255, 419) ,(250, 425) ,(256, 415) ,(250, 418) ,(250, 405) ,(249, 415) ,(247, 402) ,(247, 395) ,(246, 387) ,(241, 395) ,(238, 401) ,(243, 409) ,(243, 421) ,(234, 396) ,(228, 385) ,(222, 366) ,(220, 364) ,(213, 363) ,(203, 366) ,(193, 372) ,(198, 381) ,(194, 398) ,(205, 377) ,(208, 379) ,(205, 387) ,(204, 406) ,(215, 431) ,(207, 417) ,(212, 404) ,(219, 395) ,(223, 386) ,(221, 405) ,(217, 415) ,(218, 424) ,(224, 418) ,(226, 410) ,(226, 425) ,(219, 441) ,(222, 441) ,(223, 450) ,(227, 446) ,(231, 454) ,(236, 466) ,(243, 474) ,(249, 480) ,(252, 485) ,(250, 499) ,(252, 514) ,(255, 505) ,(263, 519) ,(269, 526) ,(273, 536) ,(283, 547) ,(287, 555) ,(288, 551) ,(296, 556) ,(302, 564) ,(309, 570) ,(318, 572) ,(326, 585) ,(328, 580) ,(345, 588) ,(337, 583) ,(353, 587) ,(373, 593) ,(360, 586) ,(370, 589) ,(387, 591) ,(384, 587) ,(405, 586) ,(393, 585) ,(409, 581) ,(397, 581) ,(409, 579) ,(419, 579) ,(408, 575) ,(432, 573) ,(422, 572) ,(439, 568) ,(434, 567) ,(442, 564) ,(435, 562) ,(449, 556) ,(457, 544) ,(457, 553) ,(463, 540) ,(468, 532) ,(479, 519) ,(478, 509) ,(479, 523) ,(484, 508) ,(485, 498) ,(491, 508) ,(495, 496) ,(503, 485) ,(501, 480) ,(511, 483) ,(502, 474) ,(512, 476) ,(503, 470) ,(516, 474) ,(506, 469) ,(518, 470) ,(508, 465) ,(524, 468) ,(514, 463) ,(530, 457) ,(516, 459) ,(526, 454) ,(521, 450) ,(547, 444) ,(524, 441) ,(541, 441) ,(528, 438) ,(540, 435) ,(551, 433) ,(539, 431) ,(552, 420) ,(539, 425) ,(531, 426) ,(542, 419) ,(524, 421) ,(532, 417) ,(526, 416) ,(539, 412) ,(518, 414) ,(508, 403) ,(510, 388) ,(520, 409) ,(516, 386) ,(521, 375) ,(522, 366) ,(531, 379) ,(526, 361) ,(526, 353) ,(539, 336) ,(546, 313) ,(548, 290) ,(553, 277) ,(577, 270) ,(554, 268) ,(562, 265) ,(546, 264) ,(552, 261) ,(557, 255) ,(547, 259) ,(557, 247) ,(540, 248) ,(551, 236) ,(539, 240) ,(542, 233) ,(536, 226) ,(534, 214) ,(528, 202) ,(522, 199) ,(530, 198) ,(520, 190) ,(546, 194) ,(522, 187) ,(531, 183) ,(517, 184) ,(528, 176) ,(517, 181) ,(524, 177) ,(511, 178) ,(514, 174) ,(515, 151) ,(513, 160) ,(504, 153) ,(494, 136) ,(480, 121) ,(472, 113) ,(475, 106) ,(472, 107) ,(459, 93) ,(463, 102) ,(446, 92) ,(428, 81) ,(403, 74) ,(376, 71) ,(346, 70) ,(317, 81) ,(291, 77) ,(270, 88) ,(240, 92) ,(224, 101) ,(233, 98) ,(218, 114) ,(207, 131) ,(199, 146) ,(188, 161) ,(179, 185) ,(176, 219) ,(176, 243) ,(179, 263) ,(172, 273) ,(174, 293) ,(179, 311) ,(190, 320) ,(190, 325) ,(185, 328) ,(191, 337) ,(189, 347) ,(183, 353) ,(182, 354)]
        self.lips = [(327, 451) ,(337, 462) ,(351, 469) ,(370, 469) ,(387, 465) ,(404, 459) ,(411, 451) ,(401, 442) ,(391, 437) ,(383, 434) ,(377, 433) ,(370, 436) ,(365, 435) ,(360, 434) ,(354, 434) ,(347, 436) ,(342, 440) ,(336, 445) ,(327, 452) ,(339, 449) ,(350, 448) ,(361, 449) ,(371, 450) ,(382, 449) ,(392, 445) ,(402, 445) ,(390, 450) ,(379, 454) ,(366, 455) ,(356, 455) ,(345, 453) ,(336, 453) ,(332, 453)]
        self.lips1 =[(338, 462) ,(336, 456) ,(335, 452) ,(341, 453) ,(350, 453) ,(359, 454) ,(370, 454) ,(379, 453) ,(387, 451) ,(397, 449) ,(403, 446) ,(393, 446) ,(381, 449) ,(372, 451) ,(366, 449) ,(358, 449) ,(350, 449) ,(342, 449) ,(332, 450) ,(329, 451) ,(333, 457) ,(337, 461)]
        self.lips2 =[(337, 463) ,(337, 459) ,(337, 453) ,(345, 454) ,(356, 455) ,(366, 455) ,(377, 454) ,(386, 453) ,(396, 449) ,(401, 449) ,(407, 451) ,(401, 455) ,(395, 460) ,(388, 457) ,(383, 457) ,(377, 458) ,(373, 462) ,(368, 466) ,(364, 466) ,(361, 464) ,(355, 459) ,(351, 459) ,(344, 459) ,(342, 459) ,(342, 464) ,(340, 464) ,(337, 463)]
        self.eye1 =[(279, 335) ,(289, 326) ,(298, 321) ,(306, 319) ,(315, 320) ,(328, 324) ,(336, 328) ,(325, 330) ,(313, 334) ,(299, 337) ,(290, 335) ,(284, 331)]
        self.eyelid =[(294, 323) ,(295, 329) ,(304, 329) ,(305, 332) ,(301, 332) ,(297, 332) ,(304, 336) ,(310, 335) ,(316, 329) ,(316, 320) ,(306, 319) ,(299, 320) ,(295, 323)]
        self.eyelid2 =[(298, 324) ,(300, 325) ,(300, 328) ,(297, 328) ,(296, 327) ,(296, 325)]
        self.eye2 =[(390, 323) ,(397, 319) ,(407, 313) ,(417, 309) ,(426, 309) ,(436, 310) ,(442, 314) ,(447, 317) ,(439, 322) ,(430, 324) ,(418, 325) ,(407, 325) ,(400, 323) ,(391, 324)]
        self.eyelid3 =[(408, 313) ,(409, 318) ,(420, 319) ,(420, 321) ,(411, 322) ,(415, 325) ,(419, 325) ,(424, 325) ,(430, 320) ,(432, 314) ,(429, 310) ,(422, 310) ,(418, 310) ,(413, 311) ,(409, 313)]
        self.eyelid4 =[(410, 314) ,(412, 314) ,(411, 316) ,(409, 316) ,(409, 314)]
        self.eyebrow1 =[(261, 312) ,(266, 306) ,(277, 301) ,(288, 299) ,(305, 301) ,(315, 302) ,(324, 304) ,(320, 299) ,(328, 306) ,(323, 295) ,(331, 306) ,(335, 306) ,(329, 293) ,(321, 290) ,(309, 288) ,(297, 288) ,(283, 292) ,(287, 289) ,(292, 287) ,(297, 286) ,(293, 286) ,(289, 287) ,(285, 288) ,(277, 292) ,(273, 296) ,(268, 301) ,(264, 305) ,(261, 309)]
        self.eyebrow2 =[(393, 299) ,(397, 289) ,(406, 279) ,(421, 275) ,(440, 276) ,(433, 273) ,(442, 275) ,(452, 280) ,(460, 288) ,(463, 293) ,(453, 285) ,(446, 285) ,(432, 288) ,(422, 290) ,(407, 293) ,(395, 298)]
        self.pen = tu.Turtle()
        self.pen.speed(0)
        self.x_offset = 400
        self.y_offset = 400


    def go(self, x, y):
        self.pen.penup()
        self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset)
        self.pen.pendown()  


    def paint(self,coord,co=(0,0,0)):
        self.pen.color(co)
        t_x,t_y = coord[0]
        self.go(t_x,t_y)
        self.pen.fillcolor(co)
        self.pen.begin_fill()
        t = 0
        for i in coord[1:]:
            print(i)
            x,y = i
            if t:
                self.go(x,y)
                t = 0
                self.pen.begin_fill()
                continue
            if x == -1 and y == -1:
                t = 1
                self.pen.end_fill()
                continue
            else:
                self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset) 
        self.pen.end_fill()


    def draw_fn(self,coord,mode = 1,co = (0,0,0),thickness = 1):
        co = (co[0]/255,co[1]/255,co[2]/255)

        self.pen.color(co)

        if mode:
            self.pen.width(thickness)
            t_x,t_y = coord[0]
            self.go(t_x,t_y)
            t = 0
            for i in coord[1:]:
                print(i)
                x,y = i
                if t:
                    self.go(x,y)
                    t = 0
                    continue
                if x == -1 and y == -1:
                    t = 1
                    continue
                else:
                    self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset)
        else:
            self.paint(coord=coord,co = co)

    
    def draw(self,retain=True):
        self.draw_fn(self.r,co =(237, 7, 7),mode=0)
        self.draw_fn(self.r1,co =(247, 247, 247),mode=0)
        self.draw_fn(self.o,co =(237, 7, 7),mode=0)
        self.draw_fn(self.c,co =(237, 7, 7),mode=0)
        self.draw_fn(self.k,co =(237, 7, 7),mode=0)
        self.draw_fn(self.y,co =(237, 7, 7),mode=0)
        self.draw_fn(self.facecolor,co =(239, 203, 184),mode=0)
        self.draw_fn(self.facecolor1,co =(228, 174, 146),mode=0)
        self.draw_fn(self.facecolor2,co =(228, 174, 146),mode=0)
        self.draw_fn(self.nose,co =(233, 187, 164),mode=0)
        self.draw_fn(self.nose1,co =(58, 35, 34),mode=1,thickness=2)
        self.draw_fn(self.facecolor3,co=(228, 174, 146),mode=0)
        self.draw_fn(self.facecolor4,co=(228, 174, 146),mode=0)
        self.draw_fn(self.eyebrowline,co =(15, 14, 14),mode=1,thickness=2)
        self.draw_fn(self.eyebrowline2,co =(15, 14, 14),mode=1,thickness=2)
        self.draw_fn(self.shirt,co=(61, 184, 179),mode=0)
        self.draw_fn(self.shirt1,co=(48, 167, 161),mode=0)
        self.draw_fn(self.shirt2,co=(41, 121, 118),mode=0)
        self.draw_fn(self.neck,co=(225, 164, 143),mode=0)
        self.draw_fn(self.hair1,co = (57, 35, 37),mode = 0)
        self.draw_fn(self.beard,co=(227, 174, 143),mode=0)
        self.draw_fn(self.beard1,co=(178, 116, 100),mode=0)
        self.draw_fn(self.ear1,co = (230, 171, 139),mode = 0)
        self.draw_fn(self.ear2,co = (183, 121, 96),mode = 0)
        self.draw_fn(self.ear3,co = (230, 171, 139),mode = 0)
        self.draw_fn(self.lips,co = (184, 88, 89),mode = 0)
        self.draw_fn(self.lips1,co = (61, 31, 33),mode = 0)
        self.draw_fn(self.lips2,co = (149, 63, 66),mode = 0)
        self.draw_fn(self.eye1,co = (58, 35, 34),mode = 1,thickness=2)
        self.draw_fn(self.eyelid,co = (58, 35, 34),mode = 0)
        self.draw_fn(self.eyelid2,co = (255, 244, 243),mode = 0)
        self.draw_fn(self.eye2,co = (58, 35, 34),mode = 1,thickness=2)
        self.draw_fn(self.eyelid3,co = (58, 35, 34),mode = 0)
        self.draw_fn(self.eyelid4,co = (255, 244, 243),mode = 0)
        self.draw_fn(self.eyebrow1,co = (58, 35, 33),mode = 0)
        self.draw_fn(self.eyebrow2,co = (58, 35, 33),mode = 0)

        if retain:
            tu.done()

pen=rockingstaryash()
pen.draw()

&lt;/code&gt;&lt;/pre&gt;

Output:
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC4AAH2n-zPG7igia_Gyi0m4ChCKWfAAgcpkzzV0cYplh2fbohlKuDtoEBTqYAaHrzlp9NkTFt_wk4BIzC7SzUBKOX__uNdErGX3GjMCr7ojiV5voTnUdePH3b31o7cBfXVmyGhUmec4DoRjLjHggO-Qm9yGAgdbfu345RLlcoc33syuZoYpyevesL/s720/IMG_20220423_161849.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;607&quot; data-original-width=&quot;720&quot; height=&quot;338&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC4AAH2n-zPG7igia_Gyi0m4ChCKWfAAgcpkzzV0cYplh2fbohlKuDtoEBTqYAaHrzlp9NkTFt_wk4BIzC7SzUBKOX__uNdErGX3GjMCr7ojiV5voTnUdePH3b31o7cBfXVmyGhUmec4DoRjLjHggO-Qm9yGAgdbfu345RLlcoc33syuZoYpyevesL/w400-h338/IMG_20220423_161849.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/4071544074855069738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2022/04/rocking-star-yash-drawing-using-python.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/4071544074855069738'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/4071544074855069738'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2022/04/rocking-star-yash-drawing-using-python.html' title='Rocking Star YASH Drawing using Python Turtle Graphics'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC4AAH2n-zPG7igia_Gyi0m4ChCKWfAAgcpkzzV0cYplh2fbohlKuDtoEBTqYAaHrzlp9NkTFt_wk4BIzC7SzUBKOX__uNdErGX3GjMCr7ojiV5voTnUdePH3b31o7cBfXVmyGhUmec4DoRjLjHggO-Qm9yGAgdbfu345RLlcoc33syuZoYpyevesL/s72-w400-h338-c/IMG_20220423_161849.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-8359640364197748561</id><published>2022-04-03T05:03:00.003-07:00</published><updated>2023-01-06T03:43:09.725-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Draw anyone&#39;s Sketch using Python Turtle Graphics in Python Programming</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Draw anyone&#39;s Sketch using Python Turtle Graphics in Python Programming&lt;/span&gt;&lt;/b&gt; 👨‍💻🔥&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;In this post ,I will tell you about How to make Anyone&#39;s Sketch in Python using svg file and using these libraries: &lt;b&gt;Turtle,cv2(opencv-python),svgpathtools,svg.path and tqdm.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;You can install these libraries using pip command.&lt;/p&gt;&lt;p&gt;Turtle is pre-installed in mostly all programming softwares.&lt;/p&gt;&lt;p&gt;And here are the pip commands to install other libraries :&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: #cccccc;&quot;&gt;pip install opencv-python&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: #cccccc;&quot;&gt;pip install svgpathtools&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: #cccccc;&quot;&gt;pip install svg.path&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: #cccccc;&quot;&gt;pip install tqdm&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;𝗦𝘁𝗲𝗽𝘀 𝘁𝗼 𝗺𝗮𝗸𝗲 𝘀𝗸𝗲𝘁𝗰𝗵 :&amp;nbsp;&lt;/p&gt;&lt;p&gt;1)Go to &lt;span style=&quot;color: #2b00fe;&quot;&gt;https://svgconvert.com/#/&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;2)Upload the image and change the threshold value according to the image and download it as a svg file.&amp;nbsp;&lt;/p&gt;&lt;p&gt;3)Save the code and svg file in the same folder.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Source Code&lt;/b&gt; :&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;
import turtle as tu
import cv2
from svgpathtools import svg2paths2
from svg.path import parse_path
from tqdm import tqdm
class sketch_from_svg:

    def __init__(self,path,scale=30,x_offset=400,y_offset=400):

        self.path = path
        self.x_offset = x_offset
        self.y_offset = y_offset
        self.scale = scale

    def hex_to_rgb(self,string):
        strlen = len(string)
        if string.startswith(&#39;#&#39;):
            if strlen == 7:
                r = string[1:3]
                g = string[3:5]
                b = string[5:7]
            elif strlen == 4:
                r = string[1:2]*2
                g = string[2:3]*2
                b = string[3:4]*2
        elif strlen == 3:
                r = string[0:1]*2
                g = string[1:2]*2
                b = string[2:3]*2
        else:
            r = string[0:2]
            g = string[2:4]
            b = string[4:6]
        
        return int(r,16)/255,int(g,16)/255, int(b,16)/255

    

    def load_svg(self):
        print(&#39;loading data&#39;)
        paths,attributes,svg_att = svg2paths2(self.path)
        h = svg_att[&quot;height&quot;]
        w = svg_att[&#39;width&#39;]
        self.height = int(h[:h.find(&#39;.&#39;)])
        self.width = int(w[:w.find(&#39;.&#39;)])

        res = []
        for i in tqdm(attributes):
            path = parse_path(i[&#39;d&#39;])
            co = i[&#39;fill&#39;]
            #print(co)
            col = self.hex_to_rgb(co)
            #print(col)
            n = len(list(path))+2       
            pts = [((int((p.real/self.width)*self.scale))-self.x_offset, (int((p.imag/self.height)*self.scale))-self.y_offset) for p in (path.point(i/n) for i in range(0,n+1))]
            res.append((pts,col))
            #res.append(pts)
        print(&#39;svg data loaded&#39;)
        return res

    def move_to(self,x, y):
        self.pen.up()
        self.pen.goto(x,y)
        self.pen.down()


    def draw(self,retain=True):
        coordinates = self.load_svg()
        self.pen = tu.Turtle()
        self.pen.speed(0)
        for path_col in coordinates:
            f = 1
            self.pen.color(&#39;black&#39;)
            #print(path_col)
            path = path_col[0]
            #print(path_col)
            col = path_col[1]
            #print(col)
            self.pen.color(col)
            self.pen.begin_fill()
            next = 0
            for coord in path:
                #for coord in path_col:
                x,y = coord
                y *= -1
                #print(x,y)
                if f:
                    self.move_to(x, y)
                    f=0
                else:
                    self.pen.goto(x,y)
            self.pen.end_fill()

        if retain == True:
            tu.done()
pen= sketch_from_svg(&#39;filename.svg&#39;,scale=80)
pen.draw()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;
Note&lt;/b&gt; : &lt;i&gt;Change the filename in line 96 according to your filename and save the code and svg file in same folder to run the code&lt;/i&gt;.&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;Output Example :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZe0blDJJ__0nU5OsFht6GcVD4_xCerhSQK90CmvOP-fVsS_bVhfMq_lY-JHoh3hLuX0oAt8ZfPupwfU9n8BmlCRUkQd1t5gkH-fHOOYotdX2FEhoo3UTN3wMCsmdcvqXa7EapDNwMcfHh4gGjPIO2TQjy7hKypWxeclLXVCWRA7zN8a57qA2ymjP5/s1280/20220403_171054.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZe0blDJJ__0nU5OsFht6GcVD4_xCerhSQK90CmvOP-fVsS_bVhfMq_lY-JHoh3hLuX0oAt8ZfPupwfU9n8BmlCRUkQd1t5gkH-fHOOYotdX2FEhoo3UTN3wMCsmdcvqXa7EapDNwMcfHh4gGjPIO2TQjy7hKypWxeclLXVCWRA7zN8a57qA2ymjP5/w640-h360/20220403_171054.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;MS Dhoni Sketch by using this Code&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;If you like this post, Subscribe my YouTube Channel called &quot;&lt;a href=&quot;https://youtube.com/c/VastCoding&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&quot;.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Click to redirect.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Your Queries:&lt;/div&gt;&lt;div&gt;&lt;div&gt;netflix logo python code&lt;/div&gt;&lt;div&gt;netflix logo using python&lt;/div&gt;&lt;div&gt;netflix logo in python&lt;/div&gt;&lt;div&gt;netflix logo code python&lt;/div&gt;&lt;div&gt;python code for netflix logo&lt;/div&gt;&lt;div&gt;python netflix logo&lt;/div&gt;&lt;/div&gt;&lt;div&gt;python turtle graphics tutorial&lt;/div&gt;&lt;div&gt;python turtle graphics design&lt;/div&gt;&lt;div&gt;cool python turtle graphics&lt;/div&gt;&lt;div&gt;python turtle graphics game&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/8359640364197748561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2022/04/draw-anyones-sketch-using-python-turtle.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/8359640364197748561'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/8359640364197748561'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2022/04/draw-anyones-sketch-using-python-turtle.html' title='Draw anyone&#39;s Sketch using Python Turtle Graphics in Python Programming'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZe0blDJJ__0nU5OsFht6GcVD4_xCerhSQK90CmvOP-fVsS_bVhfMq_lY-JHoh3hLuX0oAt8ZfPupwfU9n8BmlCRUkQd1t5gkH-fHOOYotdX2FEhoo3UTN3wMCsmdcvqXa7EapDNwMcfHh4gGjPIO2TQjy7hKypWxeclLXVCWRA7zN8a57qA2ymjP5/s72-w640-h360-c/20220403_171054.jpg" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-27565114046272762</id><published>2022-04-01T05:47:00.003-07:00</published><updated>2022-04-15T17:57:12.057-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Robert Downey Jr - Tony Stark - Ironman Sketch using Python Turtle Graphics </title><content type='html'>&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Robert Downey Jr Sketch using Python Turtle Graphics&lt;/b&gt;👨‍💻&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;u&gt;About Python Turtle Graphics&lt;/u&gt; :&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967. Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an import turtle , give it the command turtle.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Note: &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;If you are facing any issue to copy the code then copy the full page clicking &#39;select all&#39;,paste it to your notepad and copy the code from there.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;u&gt;&lt;b&gt;Here is the source code&lt;/b&gt;&lt;/u&gt; :&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;
import turtle as tu


class rdj:
    def __init__(self):
        self.mouth = [(374, 382),(368, 382),(359, 382),(347, 379),(339, 381),(334, 384),(323, 380),(315, 380),(293, 385),(321, 387),(339, 387),(345, 386),(357, 385),(374, 383),(-1, -1),(389, 389),(393, 387),(395, 381),(395, 373),(377, 362),(366, 357),(358, 360),(351, 357),(345, 354),(344, 357),(337, 355),(333, 357),(327, 355),(323, 357),(303, 362),(293, 365),(286, 367),(282, 374),(277, 376),(279, 394),(286, 390),(293, 380),(297, 378),(302, 378),(304, 375),(307, 378),(310, 374),(313, 377),(315, 373),(319, 375),(322, 374),(325, 376),(329, 375),(336, 375),(342, 374),(350, 374),(353, 376),(357, 374),(369, 374),(372, 377),(374, 374),(377, 378),(383, 379),(389, 389),]
        self.nose = [(342, 305),(342, 313),(344, 321),(344, 328),(343, 335),(338, 342),(331, 344),(322, 343),(313, 340),(310, 339),(307, 339),(303, 333),(301, 338),(305, 343),(313, 344),(323, 349),(332, 353),(343, 345),(346, 342),(354, 342),(359, 338),(360, 329),(355, 322),(348, 320),(348, 323),(354, 325),(356, 331),(353, 336),(348, 335),(350, 330),(348, 323),(343, 305),]
        self.dress = [(56, 513),(222, 433),(247, 393),(249, 408),(254, 425),(265, 456),(265, 456),(273, 478),(280, 495),(283, 509),(294, 539),(302, 527),(314, 515),(328, 503),(347, 491),(350, 493),(340, 499),(349, 507),(359, 517),(380, 498),(397, 505),(412, 516),(425, 526),(432, 533),(435, 539),(399, 523),(399, 530),(395, 538),(353, 539),(347, 530),(320, 519),(300, 539),(293, 539),(-1, -1),(363, 507),(391, 478),(401, 458),(422, 408),(423, 398),(420, 407),(400, 440),(386, 460),(377, 471),(371, 475),(366, 480),(357, 482),(348, 478),(339, 470),(330, 462),(316, 453),(301, 444),(276, 420),(248, 391),(253, 399),(267, 419),(278, 430),(288, 441),(295, 445),(303, 453),(326, 475),(338, 484),(347, 492),(353, 498),(363, 508),(371, 500),(-1, -1),(427, 401),(437, 486),(441, 526),(443, 539),(624, 539),(625, 477),(528, 449),(477, 428),(447, 412),(428, 401),]
        self.face = [(328, 461),(316, 457),(305, 453),(297, 446),(286, 436),(284, 434),(280, 431),(277, 431),(279, 428),(275, 428),(272, 423),(262, 411),(250, 395),(244, 387),(241, 382),(238, 377),(235, 372),(236, 367),(234, 363),(234, 358),(231, 354),(231, 349),(230, 346),(231, 343),(228, 339),(229, 336),(226, 330),(227, 324),(223, 320),(224, 317),(221, 311),(216, 310),(212, 306),(213, 302),(216, 308),(220, 306),(220, 297),(217, 294),(219, 284),(216, 279),(216, 272),(211, 266),(208, 272),(206, 266),(207, 256),(205, 249),(204, 243),(204, 237),(208, 233),(208, 229),(206, 229),(206, 222),(202, 215),(202, 210),(197, 204),(198, 197),(193, 193),(192, 173),(190, 170),(191, 166),(190, 162),(191, 159),(188, 154),(186, 148),(188, 142),(188, 135),(188, 127),(191, 122),(186, 121),(177, 112),(185, 115),(179, 105),(188, 114),(182, 98),(191, 109),(194, 104),(200, 101),(194, 99),(203, 94),(206, 85),(211, 82),(218, 80),(213, 78),(208, 79),(212, 76),(218, 76),(216, 69),(218, 64),(219, 70),(221, 75),(223, 68),(230, 64),(231, 58),(234, 56),(235, 52),(236, 47),(240, 42),(242, 35),(252, 32),(270, 28),(283, 28),(290, 28),(297, 29),(304, 33),(318, 29),(332, 28),(346, 27),(356, 27),(366, 29),(379, 36),(363, 24),(375, 26),(389, 36),(397, 40),(405, 45),(411, 54),(422, 61),(429, 70),(433, 83),(435, 91),(436, 79),(436, 99),(436, 106),(441, 99),(435, 113),(450, 108),(469, 111),(477, 108),(473, 114),(467, 126),(477, 120),(479, 124),(471, 132),(473, 136),(472, 145),(483, 148),(479, 151),(480, 161),(483, 168),(480, 173),(480, 178),(476, 184),(474, 190),(472, 196),(465, 197),(462, 204),(462, 211),(461, 217),(459, 224),(463, 231),(456, 229),(452, 237),(449, 245),(448, 254),(448, 262),(450, 257),(452, 251),(454, 244),(458, 239),(462, 243),(462, 251),(458, 246),(456, 251),(454, 255),(458, 257),(452, 266),(454, 273),(455, 282),(452, 288),(453, 296),(458, 286),(457, 295),(453, 303),(449, 304),(448, 297),(450, 290),(453, 280),(448, 273),(448, 280),(446, 288),(445, 300),(444, 308),(448, 315),(454, 311),(454, 317),(449, 319),(443, 316),(442, 327),(439, 339),(437, 350),(433, 362),(430, 370),(430, 378),(426, 385),(420, 393),(416, 399),(411, 404),(408, 409),(403, 414),(399, 419),(394, 427),(386, 435),(381, 441),(376, 444),(371, 448),(367, 451),(359, 456),(352, 458),(348, 461),(341, 461),(336, 463),(330, 459),(328, 462),(316, 457),]
        self.iface = [(311, 400),(324, 402),(338, 402),(347, 402),(356, 399),(363, 397),(359, 402),(356, 408),(353, 414),(348, 419),(349, 426),(359, 426),(362, 430),(367, 433),(374, 434),(376, 436),(379, 432),(383, 433),(385, 427),(393, 419),(394, 416),(398, 413),(400, 408),(401, 394),(408, 402),(415, 394),(421, 385),(424, 380),(424, 373),(427, 367),(432, 353),(434, 345),(436, 339),(434, 330),(438, 322),(438, 312),(437, 310),(440, 309),(441, 293),(443, 288),(441, 284),(444, 275),(440, 265),(442, 233),(439, 227),(439, 221),(434, 211),(425, 203),(432, 203),(421, 192),(430, 196),(421, 187),(430, 187),(419, 178),(432, 180),(420, 172),(428, 174),(422, 165),(415, 159),(413, 147),(408, 140),(403, 140),(402, 138),(395, 139),(394, 136),(388, 138),(386, 136),(379, 138),(377, 133),(372, 134),(369, 131),(364, 134),(360, 133),(355, 135),(353, 131),(348, 132),(347, 127),(346, 131),(343, 127),(336, 131),(331, 128),(327, 130),(323, 126),(319, 129),(313, 125),(309, 131),(306, 126),(303, 131),(297, 126),(296, 131),(289, 127),(287, 130),(282, 126),(280, 132),(274, 128),(274, 135),(268, 131),(264, 135),(256, 134),(256, 139),(251, 138),(252, 142),(246, 142),(247, 146),(244, 149),(245, 154),(239, 154),(243, 160),(236, 163),(242, 164),(233, 169),(238, 170),(231, 177),(237, 176),(227, 184),(237, 180),(229, 190),(237, 189),(229, 198),(237, 195),(232, 202),(239, 205),(229, 212),(238, 210),(232, 215),(238, 215),(233, 220),(227, 227),(224, 237),(224, 246),(226, 253),(226, 259),(227, 267),(227, 277),(224, 291),(223, 304),(225, 311),(228, 319),(231, 330),(234, 340),(235, 349),(237, 361),(241, 372),(248, 385),(252, 391),(258, 397),(264, 402),(268, 396),(272, 398),(272, 406),(279, 414),(278, 419),(284, 426),(292, 431),(292, 435),(296, 438),(299, 438),(301, 442),(308, 439),(313, 435),(317, 435),(319, 430),(321, 428),(325, 426),(327, 426),(332, 424),(331, 416),(326, 416),(318, 408),(318, 404),(311, 400),(324, 402),]
        self.ebrow = [(339, 243),(339, 248),(343, 254),(350, 256),(358, 251),(367, 248),(382, 247),(397, 249),(407, 252),(418, 258),(419, 253),(414, 245),(399, 235),(391, 235),(381, 237),(372, 238),(361, 243),(353, 245),(343, 255),(-1, -1),(321, 246),(320, 258),(314, 257),(305, 254),(263, 253),(245, 259),(243, 257),(246, 250),(253, 245),(260, 242),(269, 241),(276, 241),(282, 243),(291, 245),(305, 245),(311, 249),(319, 252),(322, 246),]
        self.lines = [(345, 313),(344, 308),(343, 297),(343, 282),(-1, -1),(367, 340),(384, 357),(-1, -1),(295, 337),(280, 359),(-1, -1),(385, 278),(394, 278),(400, 273),(408, 264),(400, 261),(389, 257),(377, 258),(371, 260),(358, 269),(362, 272),(-1, -1),(395, 257),(371, 254),(353, 263),(-1, -1),(303, 274),(309, 273),(297, 263),(290, 262),(272, 262),(261, 270),(256, 271),(262, 271),(269, 277),(283, 281),(-1, -1),(255, 267),(271, 260),(282, 259),(291, 259),(300, 260),(311, 264),]
        self.eyes = [(375, 260),(375, 266),(378, 271),(384, 273),(389, 270),(391, 267),(392, 264),(391, 260),(388, 258),(384, 257),(379, 257),(375, 261),(-1,-1),(291, 263),(292, 269),(289, 273),(286, 276),(281, 276),(276, 273),(274, 269),(274, 265),(276, 263),(281, 262),(287, 262),(291, 263),]
        self.eball = [(281, 266),(279, 267),(277, 266),(277, 264),(279, 263),(281, 264),(281, 266),(-1, -1),(379, 259),(382, 260),(382, 263),(380, 264),(378, 263),(377, 261),(379, 259),]
        self.pen = tu.Turtle()
        self.pen.hideturtle()
        self.pen.speed(0)
        self.x_offset = 300
        self.y_offset = 300


    def go(self, x, y):
        self.pen.penup()
        self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset)
        self.pen.pendown()  


    def paint(self,coord,co=(0,0,0)):
        self.pen.color(co)
        t_x,t_y = coord[0]
        self.go(t_x,t_y)
        self.pen.fillcolor(co)
        self.pen.begin_fill()
        t = 0
        for i in coord[1:]:
            print(i)
            x,y = i
            if t:
                self.go(x,y)
                t = 0
                self.pen.begin_fill()
                continue
            if x == -1 and y == -1:
                t = 1
                self.pen.end_fill()
                continue
            else:
                self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset) 
        self.pen.end_fill()


    def draw_fn(self,coord,mode = 1,co = (0,0,0),thickness = 1):
        co = (co[0]/255,co[1]/255,co[2]/255)

        self.pen.color(co)

        if mode:
            self.pen.width(thickness)
            t_x,t_y = coord[0]
            self.go(t_x,t_y)
            t = 0
            for i in coord[1:]:
                print(i)
                x,y = i
                if t:
                    self.go(x,y)
                    t = 0
                    continue
                if x == -1 and y == -1:
                    t = 1
                    continue
                else:
                    self.pen.goto(x-self.x_offset,(y*-1)+self.y_offset)
        else:
            self.paint(coord=coord,co = co)

    
    def draw(self,retain=True):
        self.draw_fn(self.dress,mode = 0)
        self.draw_fn(self.face,mode = 0)
        self.draw_fn(self.iface,co = (255,255,255),mode = 0)
        self.draw_fn(self.mouth,mode = 0)
        self.draw_fn(self.nose,mode = 0)
        self.draw_fn(self.ebrow,mode = 0)
        self.draw_fn(self.lines,mode = 1,thickness=2)
        self.draw_fn(self.eyes,mode = 0)
        self.draw_fn(self.eball,mode = 0,co = (255,255,255))
        if retain:
            tu.done()
pen = rdj()
pen.draw()
&lt;/code&gt;&lt;/pre&gt;

If you like this you can also subscribe my Youtube Channel &quot;&lt;a href=&quot;https://youtube.com/c/VastCoding&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;OUTPUT&lt;/u&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTSd5b1IfUbc6LYTUrxH249IUBVK2-aD_Eml_Xf8NOv4nQ4M0rqmLd0Ykk0lEH1wG8Prd2egPIjBW6i6ffdT8wZRINuDeMC8nujyLsmgbVLsuFVxdrN1QCc1k3RzCYzMY8FIpsvf1MOtlf-dqmkZ5d7VBKUv9p_tv7CrfBRE5Z5S1slALverRYMk9U/s1280/20220401_174022.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTSd5b1IfUbc6LYTUrxH249IUBVK2-aD_Eml_Xf8NOv4nQ4M0rqmLd0Ykk0lEH1wG8Prd2egPIjBW6i6ffdT8wZRINuDeMC8nujyLsmgbVLsuFVxdrN1QCc1k3RzCYzMY8FIpsvf1MOtlf-dqmkZ5d7VBKUv9p_tv7CrfBRE5Z5S1slALverRYMk9U/w400-h225/20220401_174022.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Robert Downey Jr&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;Youtube Video&lt;/b&gt; &lt;/u&gt;:&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;319&quot; src=&quot;https://www.youtube.com/embed/NGAS9F25uhU&quot; width=&quot;456&quot; youtube-src-id=&quot;NGAS9F25uhU&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;🔵If you have any queries regarding this , comment on this post !&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Your Queries:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;netflix logo python code&lt;/div&gt;&lt;div&gt;netflix logo using python&lt;/div&gt;&lt;div&gt;netflix logo in python&lt;/div&gt;&lt;div&gt;netflix logo code python&lt;/div&gt;&lt;div&gt;python code for netflix logo&lt;/div&gt;&lt;div&gt;python netflix logo&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/27565114046272762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2022/04/robert-downey-jr-tony-stark-sketch.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/27565114046272762'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/27565114046272762'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2022/04/robert-downey-jr-tony-stark-sketch.html' title='Robert Downey Jr - Tony Stark - Ironman Sketch using Python Turtle Graphics '/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTSd5b1IfUbc6LYTUrxH249IUBVK2-aD_Eml_Xf8NOv4nQ4M0rqmLd0Ykk0lEH1wG8Prd2egPIjBW6i6ffdT8wZRINuDeMC8nujyLsmgbVLsuFVxdrN1QCc1k3RzCYzMY8FIpsvf1MOtlf-dqmkZ5d7VBKUv9p_tv7CrfBRE5Z5S1slALverRYMk9U/s72-w400-h225-c/20220401_174022.jpg" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-6477207710307500227</id><published>2021-10-30T02:59:00.024-07:00</published><updated>2021-10-30T03:07:32.611-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Beautiful 3D Design using Python Turtle Graphics 🔥🔥</title><content type='html'>Beautiful 3D Design using Python Turtle Graphics 🔥🔥&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Source Code&lt;/u&gt;&lt;/b&gt;:-

&lt;pre&gt;&lt;code&gt;
import turtle as t
import colorsys

###############

t.bgcolor(&#39;black&#39;)
t.speed(&#39;fastest&#39;)
t.pensize(2)
hue=0.0
t.hideturtle()

###############

for i in range (1000):
	color = colorsys.hsv_to_rgb(hue,1,1)
	t.pencolor(color)
	t.fd(i)
	t.rt(98.5)
	t.circle(50)
	hue +=0.005
	
t.exitonclick()
&lt;/code&gt;&lt;/pre&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;

Output&amp;nbsp;&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgBrP9aYjFX9erpNzJdce2syb4iAwBOH6ldk388dq8vsYfW3zpEzz7u4jAP4nO3XEzYiFUeSgxLY-pq9p6EoQCL85V4JOr6nCjAXdHyzV2WmwlMaUfs8vPSXzkincRg1RRyHG320RN-JQ86Z9T8nkW-nnaiMCz4-gNMq8RCt8RUI6iUEL6wer-oP2Gy=s1280&quot; style=&quot;clear: left; float: left; font-style: italic; font-weight: bold; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgBrP9aYjFX9erpNzJdce2syb4iAwBOH6ldk388dq8vsYfW3zpEzz7u4jAP4nO3XEzYiFUeSgxLY-pq9p6EoQCL85V4JOr6nCjAXdHyzV2WmwlMaUfs8vPSXzkincRg1RRyHG320RN-JQ86Z9T8nkW-nnaiMCz4-gNMq8RCt8RUI6iUEL6wer-oP2Gy=w400-h225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Note:-&lt;/b&gt;&amp;nbsp;Subscribe my Youtube Channel &quot;&lt;a href=&quot;https://youtube.com/c/VastCoding&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&quot;👈 Click on it.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/6477207710307500227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/beautiful-3d-design-using-python-turtle.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/6477207710307500227'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/6477207710307500227'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/beautiful-3d-design-using-python-turtle.html' title='Beautiful 3D Design using Python Turtle Graphics 🔥🔥'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgBrP9aYjFX9erpNzJdce2syb4iAwBOH6ldk388dq8vsYfW3zpEzz7u4jAP4nO3XEzYiFUeSgxLY-pq9p6EoQCL85V4JOr6nCjAXdHyzV2WmwlMaUfs8vPSXzkincRg1RRyHG320RN-JQ86Z9T8nkW-nnaiMCz4-gNMq8RCt8RUI6iUEL6wer-oP2Gy=s72-w400-h225-c" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-8928760116861314313</id><published>2021-10-13T11:05:00.004-07:00</published><updated>2021-10-13T11:15:59.111-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Vibrant Circle using Python Turtle Graphics | Corona Shape using Python Turtle | Python Project | Vast Coding</title><content type='html'>&lt;b&gt;Vibrant Circle using Python Turtle Graphics,Corona Shape using Python Turtle,Python Project | &lt;/b&gt;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Here is the Source Code&lt;/u&gt;:-&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Vibrant Circle.py&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;
import turtle
t = turtle.Turtle()
s = turtle.Screen()
s.bgcolor(&#39;black&#39;)
t.pencolor(&#39;red&#39;)
a = 0
b = 0
t.speed(0)
t.penup()    
t.goto(0,200)
t.pendown()
while True:
    t.forward(a)
    t.right(b)
    a+=3
    b+=1
    if b==210:
        break
    t.hideturtle()
turtle.done()
&lt;/code&gt;&lt;/pre&gt;&lt;u&gt;

Output&lt;/u&gt;:-&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEglgvs0h-eoRTFaJ25RuSKtWr2pv0_HIFhMKw-_BepFqVpBxyCfWWRcsLfGFGq_Nfj8o6EW3RarSIYJI_wyjx3KKvD5btffGGA0UfWXC_dWAVRh0eD7m3rrsS-yvzKGQz6SNNb3Fshj8vTkrhT4BPFIrgO-QhVXUYguqPsHdDI_9VJFBEZBHxThQ-Y2=s1280&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEglgvs0h-eoRTFaJ25RuSKtWr2pv0_HIFhMKw-_BepFqVpBxyCfWWRcsLfGFGq_Nfj8o6EW3RarSIYJI_wyjx3KKvD5btffGGA0UfWXC_dWAVRh0eD7m3rrsS-yvzKGQz6SNNb3Fshj8vTkrhT4BPFIrgO-QhVXUYguqPsHdDI_9VJFBEZBHxThQ-Y2=w400-h225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Note:- Please help me to grow my Youtube Channel called &quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/8928760116861314313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/vibrant-circle-using-python-turtle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/8928760116861314313'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/8928760116861314313'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/vibrant-circle-using-python-turtle.html' title='Vibrant Circle using Python Turtle Graphics | Corona Shape using Python Turtle | Python Project | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEglgvs0h-eoRTFaJ25RuSKtWr2pv0_HIFhMKw-_BepFqVpBxyCfWWRcsLfGFGq_Nfj8o6EW3RarSIYJI_wyjx3KKvD5btffGGA0UfWXC_dWAVRh0eD7m3rrsS-yvzKGQz6SNNb3Fshj8vTkrhT4BPFIrgO-QhVXUYguqPsHdDI_9VJFBEZBHxThQ-Y2=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-7420614704683242820</id><published>2021-10-10T05:32:00.006-07:00</published><updated>2021-10-10T05:38:53.720-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Games"/><title type='text'>Balloon Shooter Game using Python | Python Project | Simple Python Game | Vast Coding</title><content type='html'>&lt;b&gt;Balloon Shooter Game using Python | Python Project | Simple Python Game | &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&quot;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;You can download the source code by the download button at the end of this page&lt;/span&gt;&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Here is the Source Code:-&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Balloon Shooter2.py&lt;/i&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
import pygame
import sys
import random
from math import *

pygame.init()

width = 720
height = 1200

display = pygame.display.set_mode((width, height))
pygame.display.set_caption(&quot;Balloon Shooter&quot;)
clock = pygame.time.Clock()

margin = 100
lowerBound = 100

score = 0

# Colors
white = (230, 230, 230)
lightBlue = (174, 214, 241)
red = (231, 76, 60)
lightGreen = (25, 111, 61)
darkGray = (40, 55, 71)
darkBlue = (21, 67, 96)
green = (35, 155, 86)
yellow = (244, 208, 63)
blue = (46, 134, 193)
purple = (155, 89, 182)
orange = (243, 156, 18)

font = pygame.font.SysFont(&quot;Snap ITC&quot;, 25)

# Balloon Class
class Balloon:
    def __init__(self, speed):
        self.a = random.randint(30, 40)
        self.b = self.a + random.randint(0, 10)
        self.x = random.randrange(margin, width - self.a - margin)
        self.y = height - lowerBound
        self.angle = 90
        self.speed = -speed
        self.probPool = [-1, -1, -1, 0, 0, 0, 0, 1, 1, 1]
        self.length = random.randint(50, 100)
        self.color = random.choice([red, green, purple, orange, yellow, blue])

    # Move balloon around the Screen
    def move(self):
        direct = random.choice(self.probPool)

        if direct == -1:
            self.angle += -10
        elif direct == 0:
            self.angle += 0
        else:
            self.angle += 10

        self.y += self.speed*sin(radians(self.angle))
        self.x += self.speed*cos(radians(self.angle))

        if (self.x + self.a &amp;gt; width) or (self.x &amp;lt; 0):
            if self.y &amp;gt; height/5:
                self.x -= self.speed*cos(radians(self.angle)) 
            else:
                self.reset()
        if self.y + self.b &amp;lt; 0 or self.y &amp;gt; height + 30:
            self.reset()

    # Show/Draw the balloon  
    def show(self):
        pygame.draw.line(display, darkBlue, (self.x + self.a/2, self.y + self.b), (self.x + self.a/2, self.y + self.b + self.length))
        pygame.draw.ellipse(display, self.color, (self.x, self.y, self.a, self.b))
        pygame.draw.ellipse(display, self.color, (self.x + self.a/2 - 5, self.y + self.b - 3, 10, 10))

    # Check if Balloon is bursted
    def burst(self):
        global score
        pos = pygame.mouse.get_pos()

        if onBalloon(self.x, self.y, self.a, self.b, pos):
            score += 1
            self.reset()

    # Reset the Balloon
    def reset(self):
        self.a = random.randint(30, 40)
        self.b = self.a + random.randint(0, 10)
        self.x = random.randrange(margin, width - self.a - margin)
        self.y = height - lowerBound 
        self.angle = 90
        self.speed -= 0.002
        self.probPool = [-1, -1, -1, 0, 0, 0, 0, 1, 1, 1]
        self.length = random.randint(50, 100)
        self.color = random.choice([red, green, purple, orange, yellow, blue])

balloons = []
noBalloon = 10
for i in range(noBalloon):
    obj = Balloon(random.choice([1, 1, 2, 2, 2, 2, 3, 3, 3, 4]))
    balloons.append(obj)

def onBalloon(x, y, a, b, pos):
    if (x &amp;lt; pos[0] &amp;lt; x + a) and (y &amp;lt; pos[1] &amp;lt; y + b):
        return True
    else:
        return False

# show the location of Mouse
def pointer():
    pos = pygame.mouse.get_pos()
    r = 25
    l = 20
    color = lightGreen
    for i in range(noBalloon):
        if onBalloon(balloons[i].x, balloons[i].y, balloons[i].a, balloons[i].b, pos):
            color = red
    pygame.draw.ellipse(display, color, (pos[0] - r/2, pos[1] - r/2, r, r), 4)
    pygame.draw.line(display, color, (pos[0], pos[1] - l/2), (pos[0], pos[1] - l), 4)
    pygame.draw.line(display, color, (pos[0] + l/2, pos[1]), (pos[0] + l, pos[1]), 4)
    pygame.draw.line(display, color, (pos[0], pos[1] + l/2), (pos[0], pos[1] + l), 4)
    pygame.draw.line(display, color, (pos[0] - l/2, pos[1]), (pos[0] - l, pos[1]), 4)

def lowerPlatform():
    pygame.draw.rect(display, darkGray, (0, height - lowerBound, width, lowerBound))

def showScore():
    scoreText = font.render(&quot;Balloons Bursted : &quot; + str(score), True, white)
    display.blit(scoreText, (150, height - lowerBound + 50))


def close():
    pygame.quit()
    sys.exit()

def game():
    global score
    loop = True

    while loop:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                close()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_q:
                    close()
                if event.key == pygame.K_r:
                    score = 0
                    game()

            if event.type == pygame.MOUSEBUTTONDOWN:
                for i in range(noBalloon):
                    balloons[i].burst()

        display.fill(lightBlue)
        
        for i in range(noBalloon):
            balloons[i].show()

        pointer()
        
        for i in range(noBalloon):
            balloons[i].move()

        
        lowerPlatform()
        showScore()
        pygame.display.update()
        clock.tick(60)


game()

&lt;/code&gt;&lt;/pre&gt;&lt;u&gt;

Output&lt;/u&gt;:-
&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjcdM6aIPZkCQy8qZPDoXbg5ZcPx66cjLn82k1Z5JeEyViZX5klc5__rTG7aLTxRotk_zBpOWo18NXmGhvTXuqFmvVuwnU2fkGuVbgEvwxxoNJPWvOPXE7x8JcvCRLcZLsFPRgN-pYFOoPiWxepMfeIraDxnQSun51phhXdc8_4-c7jGaRPbDqHdXB5=s1280&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjcdM6aIPZkCQy8qZPDoXbg5ZcPx66cjLn82k1Z5JeEyViZX5klc5__rTG7aLTxRotk_zBpOWo18NXmGhvTXuqFmvVuwnU2fkGuVbgEvwxxoNJPWvOPXE7x8JcvCRLcZLsFPRgN-pYFOoPiWxepMfeIraDxnQSun51phhXdc8_4-c7jGaRPbDqHdXB5=w400-h225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Download the Source Code and All files from here 👇&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/15u58WhtQ-nNFKb2Oav_U-JyDnJPSbYWP/view?usp=drivesdk&quot; rel=&quot;nofollow&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;133&quot; data-original-width=&quot;300&quot; height=&quot;89&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhW0UEphoVjnXPPgyo9V_eDAk8ZFQcmzNyZXlhbq1-3gtdNDTEKOS2xnpe1cmbt29CJ03ZIgtHpjZsPQ49kLSIZDkArXZ7YxNsy_QIhXxHB97Gb9S9YVItmmGY5Jf9B4wBDIcJrj1CIUymqh8J-jhVKC0ipGw_uHu1f4A-JqkJH63iagKuRx2rLWUsj=w200-h89&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Steps to run code&lt;/u&gt;&lt;/b&gt;:-&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1) Download the zip file from the download button.&lt;/div&gt;&lt;div&gt;2)Make a folder in your storage.&lt;/div&gt;&lt;div&gt;3)Extract zip file in the folder.&lt;/div&gt;&lt;div&gt;4)Open Pydroid3 and then open.py files.&lt;/div&gt;&lt;div&gt;5)Run the code and Enjoy your Game😃&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note:- Please help me to grow my Youtube Channel called &quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&quot;👈Click on this,you will be automatically redirected to my channel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/7420614704683242820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/balloon-shooter-game-using-python.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/7420614704683242820'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/7420614704683242820'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/balloon-shooter-game-using-python.html' title='Balloon Shooter Game using Python | Python Project | Simple Python Game | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjcdM6aIPZkCQy8qZPDoXbg5ZcPx66cjLn82k1Z5JeEyViZX5klc5__rTG7aLTxRotk_zBpOWo18NXmGhvTXuqFmvVuwnU2fkGuVbgEvwxxoNJPWvOPXE7x8JcvCRLcZLsFPRgN-pYFOoPiWxepMfeIraDxnQSun51phhXdc8_4-c7jGaRPbDqHdXB5=s72-w400-h225-c" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-1442450392077259898</id><published>2021-10-09T04:06:00.009-07:00</published><updated>2021-10-09T06:13:23.195-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Games"/><title type='text'>Carrom Board Game using Python | Simple Python Project | Vast Coding</title><content type='html'>&lt;b&gt;Carrom Board Game using Python | Simple Python Project&lt;/b&gt; | &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;i&gt;Here is the Source Code&lt;/i&gt;&lt;/u&gt;:-&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note:- If you are facing any issues to copy the code,like:-&quot;Failed to copy to the clipboard&quot;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Then copy it in two or three parts.&lt;br /&gt;&amp;nbsp;

&lt;pre&gt;&lt;code&gt;
import pygame, sys,math
from pygame.locals import *
from math import *
pygame.init()
screen = pygame.display.set_mode((600, 600))
background=(255,255,255)
screen.fill(background)
pygame.display.set_caption(&quot;Carrom&quot;)
width=535
height=535
friction=0.2
border=65
mod = lambda v: sqrt(v[0] * v[0] + v[1] * v[1])
black=(0,0,0)
player1_color=(40,40,40)
player2_color=(180,180,180)
white=(255,255,255)
yellow=(255,255,0)
pink=(255,20,147)
def repaint():    
    pygame.draw.rect(screen,(0,0,0),Rect((40,40),(520,520)))
    pygame.draw.rect(screen,(230,210,140),Rect((65,65),(470,470)))
    pygame.draw.rect(screen,(0,0,0),Rect((180,140),(240,20)))
    pygame.draw.rect(screen,(230,210,140),Rect((185,145),(230,10)))
    pygame.draw.circle(screen,(139,0,0),(180,150),10)
    pygame.draw.circle(screen,(139,0,0),(420,150),10)
    pygame.draw.rect(screen,(0,0,0),Rect((180,440),(240,20)))
    pygame.draw.rect(screen,(230,210,140),Rect((185,445),(230,10)))
    pygame.draw.circle(screen,(160,0,0),(180,450),10)
    pygame.draw.circle(screen,(160,0,0),(420,450),10)
    pygame.draw.rect(screen,(0,0,0),Rect((140,180),(20,240)))
    pygame.draw.rect(screen,(230,210,140),Rect((145,185),(10,230)))
    pygame.draw.circle(screen,(139,0,0),(150,180),10)
    pygame.draw.circle(screen,(139,0,0),(150,420),10)
    pygame.draw.rect(screen,(0,0,0),Rect((440,180),(20,240)))
    pygame.draw.rect(screen,(230,210,140),Rect((445,185),(10,230)))
    pygame.draw.circle(screen,(139,0,0),(450,180),10)
    pygame.draw.circle(screen,(139,0,0),(450,420),10)
    pygame.draw.circle(screen,(139,0,0),(300,300),60,2)
    pygame.draw.circle(screen,(139,0,0),(300,300),70,2)
    pygame.draw.circle(screen,(139,10,0),(300,300),20,4)
    pygame.draw.circle(screen,(139,10,0),(300,300),11,0)
    pygame.draw.circle(screen,white,(80,80),20)
    pygame.draw.circle(screen,white,(520,80),20)
    pygame.draw.circle(screen,white,(80,520),20)
    pygame.draw.circle(screen,white,(520,520),20)
def move(coin1,coin2):    
    center1 = [coin1.rect.x+coin1.radius, coin1.rect.y+coin1.radius]
    center2 = [coin2.rect.x+coin2.radius, coin2.rect.y+coin2.radius]
    distx = abs(center1[0]-center2[0])
    disty = abs(center1[1]-center2[1])
    #the distance between the centers of coins
    dist = [abs(center1[0]-center2[0]), abs(center1[1]-center2[1])]
    if mod(dist)==0:
        cos_theta = 1
        sin_theta = 0
    else:
        cos_theta = abs(distx)/mod(dist)
        sin_theta = abs(disty)/mod(dist)
    if mod(dist)&amp;lt;coin1.radius + coin2.radius:
        diff = coin1.radius + coin2.radius - mod(dist)        
        if coin2.rect.x&amp;gt;=coin1.rect.x:
            coin2.rect.x += ceil(diff*cos_theta/2)
            coin1.rect.x -= ceil(diff*cos_theta/2)
        else:
            coin1.rect.x += ceil(diff*cos_theta/2)
            coin2.rect.x -= ceil(diff*cos_theta/2)
        if coin2.rect.y&amp;gt;=coin1.rect.y:
            coin2.rect.y += ceil(diff*cos_theta/2)
            coin1.rect.y -= ceil(diff*cos_theta/2)
        else:
            coin1.rect.y += ceil(diff*cos_theta/2)
            coin2.rect.y += ceil(diff*cos_theta/2)
def collision(coin1,coin2):    
    v=(coin1.rect.x-coin2.rect.x,coin1.rect.y-coin2.rect.y)  
    m=math.sqrt(math.pow(v[0],2)+math.pow(v[1],2))    
    if m&amp;gt;0:
        n=(v[0]/m,v[1]/m)
    else:
        n=(0,0)    
    t=((-n[1]),n[0])
    move(coin1,coin2)   
    v_r=(coin1.velx,coin1.vely)
    v_s=(coin2.velx,coin2.vely)
    v_rnormal=(v_r[0]*n[0])+(v_r[1]*n[1])
    v_rtangent=(v_r[0]*t[0])+(v_r[1]*t[1])
    v_snormal=(v_s[0]*n[0])+(v_s[1]*n[1])
    v_stangent=(v_s[0]*t[0])+(v_s[1]*t[1])
    v_rnn=v_snormal*0.75
    v_snn=v_rnormal*0.75
    v_rnormal=((v_rnn*n[0]),(v_rnn*n[1]))
    v_snormal=((v_snn*n[0]),(v_snn*n[1]))
    v_rtangent=((v_rtangent*t[0]),(v_rtangent*t[1]))
    v_stangent=((v_stangent*t[0]),(v_stangent*t[1]))
    v_r=((v_rnormal[0]+v_rtangent[0]),(v_rnormal[1]+v_rtangent[1]))
    v_s=((v_snormal[0]+v_stangent[0]),(v_snormal[1]+v_stangent[1]))
    coin1.velx=v_r[0]
    coin1.vely=v_r[1]
    coin2.velx=v_s[0]
    coin2.vely=v_s[1]
def inhole(sprite):
    (centerx,centery)=sprite.rect.center
    a=78
    b=522
    dist= math.sqrt((centerx-a)**2 + (centery-a)**2)
    if dist&amp;lt;=(2*sprite.radius+20)/3:
        return True
    dist= math.sqrt((centerx-a)**2 + (centery-b)**2)
    if dist&amp;lt;=(2*sprite.radius+20)/3:
         return True
    dist= math.sqrt((centerx-b)**2 + (centery-a)**2)
    if dist&amp;lt;=(2*sprite.radius+20)/3:
        return True
    dist= math.sqrt((centerx-b)**2 + (centery-b)**2)
    if dist&amp;lt;=(2*sprite.radius+20)/3:
         return True
    return False         
class Coins(pygame.sprite.Sprite):
    def __init__(self,radius,colour):
        pygame.sprite.Sprite.__init__(self)
        self.image=pygame.Surface([(2*radius),(2*radius)])
        self.image.fill((255,255,255))
        self.image.set_colorkey((255,255,255))
        pygame.draw.ellipse(self.image,colour,[0,0,(2*radius),(2*radius)])
        self.rect=self.image.get_rect()
        self.radius=radius
        self.angle=0
        self.velx=0
        self.vely=0
        self.collided=False
        self.colour=colour        
    def collide(self,coin_array):
        for coin in coin_array:
            if coin!= self:
                self.other_list.add(coin)
        for coin in self.other_list:
            collision(self,coin)                            
    def update(self):
        self.rect.x +=self.velx
        self.rect.y +=self.vely

        if (self.rect.x) &amp;gt; width-(2*self.radius):
               self.rect.x = 2*(width - (2*self.radius)) - self.rect.x
               self.velx = -1*abs(self.velx)

        elif (self.rect.x) &amp;lt; (65):
               self.rect.x = 2*(65)- self.rect.x
               self.velx = abs(self.velx)

        if (self.rect.y) &amp;gt; height-(2*self.radius):
               self.rect.y = 2*(height - (2*self.radius)) - self.rect.y
               self.vely = -1*abs(self.vely)

        elif (self.rect.y) &amp;lt; (65):
               self.rect.y = 2*(65) - self.rect.y
               self.vely = abs(self.vely)
        if mod([self.velx, self.vely])==0:
            self.velx = 0
            self.vely = 0
        else:
            self.velx = self.velx - friction * self.velx / mod([self.velx, self.vely]) 
            self.vely = self.vely - friction * self.vely / mod([self.velx, self.vely]) 
            if abs(self.velx)&amp;lt;friction:
                self.velx = 0
            if abs(self.vely)&amp;lt;friction:
                self.vely = 0        
coin_list=pygame.sprite.Group()
coin_array=pygame.sprite.Group()
striker=Coins(15,(255,240,120))
striker.rect.x=282
striker.rect.y=435
coin_array.add(striker)
coin11=Coins(11,player2_color)
coin11.rect.x=288
coin11.rect.y=288-27
coin_array.add(coin11)
coin_list.add(coin11)
coin22=Coins(11,player2_color)
coin22.rect.x=288
coin22.rect.y=288+27
coin_array.add(coin22)
coin_list.add(coin22)
coin3=Coins(11,player2_color)
coin3.rect.x=288-27
coin3.rect.y=288
coin_array.add(coin3)
coin_list.add(coin3)
coin4=Coins(11,player2_color)
coin4.rect.x=288+27
coin4.rect.y=288
coin_array.add(coin4)
coin_list.add(coin4)
coin6=Coins(11,player1_color)
coin6.rect.x=288+21
coin6.rect.y=288+21
coin_array.add(coin6)
coin_list.add(coin6)
coin7=Coins(11,player1_color)
coin7.rect.x=288+21
coin7.rect.y=288-21
coin_array.add(coin7)
coin_list.add(coin7)
coin8=Coins(11,player1_color)
coin8.rect.x=288-21
coin8.rect.y=288+21
coin_array.add(coin8)
coin_list.add(coin8)
coin9=Coins(11,player1_color)
coin9.rect.x=288-21
coin9.rect.y=288-21
coin_array.add(coin9)
coin_list.add(coin9)
coin10=Coins(11,player2_color)
coin10.rect.x=288-38
coin10.rect.y=288-38
coin_array.add(coin10)
coin_list.add(coin10)
coin11=Coins(11,player2_color)
coin11.rect.x=288-38
coin11.rect.y=288+38
coin_array.add(coin11)
coin_list.add(coin11)
coin12=Coins(11,player2_color)
coin12.rect.x=288+38
coin12.rect.y=288-38
coin_array.add(coin12)
coin_list.add(coin12)
coin13=Coins(11,player2_color)
coin13.rect.x=288+38
coin13.rect.y=288+38
coin_array.add(coin13)
coin_list.add(coin13)
coin14=Coins(11,player2_color)
coin14.rect.x=288-36
coin14.rect.y=288+38
coin_array.add(coin14)
coin_list.add(coin9)
coin15=Coins(11,player1_color)
coin15.rect.x=288
coin15.rect.y=288-49
coin_array.add(coin15)
coin_list.add(coin15)
coin16=Coins(11,player1_color)
coin16.rect.x=288-49
coin16.rect.y=288
coin_array.add(coin16)
coin_list.add(coin16)
coin17=Coins(11,player1_color)
coin17.rect.x=288+49
coin17.rect.y=288
coin_array.add(coin17)
coin_list.add(coin17)
coin18=Coins(11,player1_color)
coin18.rect.x=288
coin18.rect.y=288+49
coin_array.add(coin18)
coin_list.add(coin18)
queen=Coins(11,(255,30,177))
queen.rect.x=289
queen.rect.y=289
coin_array.add(queen)
coin_list.add(queen)
repaint()
coin_array.draw(screen)
clock=pygame.time.Clock()
speed=200
attempt=0
queen_gone_temp=0
queen_gone_final=0
x=300
y=450
movex=0
movey=0
flag=0
degree=0.04
i=0
player=0
player1_points=0
player2_points=0
foul=0
while True:
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit() 
        
        if flag==0:
            if player==0:
                x,y=pygame.mouse.get_pos()
                y=450;
                
                if(x&amp;lt;180):
                     x=180
                if(x&amp;gt;420):
                     x=420
            else:
                x,y=pygame.mouse.get_pos()
                y=150;
                
                if(x&amp;lt;180):
                     x=180
                if(x&amp;gt;420):
                     x=420               
            striker.rect.x=x-striker.radius
            striker.rect.y=y-striker.radius
            striker_center=(striker.rect.x+striker.radius,striker.rect.y+striker.radius)
            repaint()
            coin_array.draw(screen)
        if event.type == pygame.MOUSEBUTTONDOWN:             
            if flag==0:
                flag=1               
            elif flag==1:
                flag=2         
        if flag==1:
            x_point,y_point=pygame.mouse.get_pos()
            if player==0:#down player
                if(y_point&amp;lt;470):
                     y_point=480
                if(y_point&amp;gt;535):
                    y_point=535
                if(x_point&amp;lt;65):
                    x_point=65
                if(x_point&amp;gt;535):
                    x_point=535
            if player==1:
                if(y_point&amp;gt;120):
                     y_point=120
                if(y_point&amp;lt;65):
                    y_point=65
                if(x_point&amp;lt;65):
                    x_point=65
                if(x_point&amp;gt;535):
                    x_point=535            
            repaint()
            coin_array.draw(screen)
            line=pygame.draw.line(screen,black,(striker_center[0],striker_center[1]),(x_point,y_point),3)                    
        if flag==2:
            flag=3
            i=25
            striker.velx=(striker_center[0]-x_point)/4
            striker.vely=(striker_center[1]-y_point)/4             
    if flag==3:         
        coin_array.update()        
        for coin1 in coin_array:
            for coin2 in coin_list:
                if coin1 is not coin2 and pygame.sprite.collide_circle(coin1, coin2) and not coin1.collided and not coin2.collided:
                    collision(coin1, coin2)
                    for coin1 in coin_list:
                        for coin2 in coin_list:
                            if coin1 is not coin2:
                                move(coin1, coin2)                        
                    coin1.collided, coin2.collided = True, True                   
        for coin in coin_array:
            coin.collided = False
            if inhole(coin):
                if coin is not striker:
                    coin_array.remove(coin)
                    coin_array.remove(coin)
                    if coin.colour==(255,30,177):
                        queen_gone_temp=1                                             
                    if coin.colour==player1_color:
                        if queen_gone_temp==1:
                            player1_points+=5
                            queen_gone_final=1
                            coin_array.remove(queen)                            
                        else:                            
                            player1_points+=1                            
                    elif coin.colour==player2_color:
                        if queen_gone_temp==1:
                            player2_points+=5
                            queen_gone_final=1
                            coin_queen.remove(queen)
                            attempt=1
                        else:
                            player2_points+=1
                    else:
                        if queen_gone_temp==1:
                            attempt=1
                        print (&#39;Player1 Points= {}&#39;.format(player1_points,&quot;\n&quot;))
                        print (&#39;Player2 Points= {}&#39;.format(player2_points,&quot;\n&quot;))
                if coin is not queen and not striker:
                    if queen_gone_temp==1 and attempt==1:
                        queen=Coins(11,(255,30,177))
                        queen.rect.x=289
                        queen.rect.y=289
                        coin_array.add(queen)
                        coin_list.add(queen)                                           
                if coin is striker:
                    print (&quot;foul&quot;)
                    if player==0:
                        player1_points-=1
                    else:
                        player2_points-=1
                    coin_array.remove(striker)
                    foul=1                                                             
        repaint()
        coin_array.draw(screen)
    boardHalt = True    
    for coin in coin_array:
        if coin.velx!=0 or coin.vely!=0:
            boardHalt = False
            break    
    if boardHalt and flag==3:
            x=300
            y=450
            flag=0
            striker.velx=0
            striker.vely=0
            striker.angle=0
            coin_array.vely=0
            coin_array.velx=0         
            if(foul==1):
                striker=Coins(15,(255,240,120))
                coin_array.add(striker)
                foul=0
            if player==0:
                player=1
            else:
                player=0                               
    pygame.display.update()
    clock.tick(100)
&lt;/code&gt;&lt;/pre&gt;&lt;b&gt;&lt;u&gt;


Output&lt;/u&gt;&lt;/b&gt; :-&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgrkLdF4chj4O6ULpAxSMZaOI1SFFNn2C38aevoz7gN1V51p7hOWk01apYz6_UxakE3oPFAUvtLG7l9TWGXgETrj8EUcxvmvLsD4QZXm1suFZFrl7w3_O3tK3Y1X1tlztW8IVycv87A5XJWvSq42sSFeuy5m9fi4j0o7MqvDlSyNgtpy4FCfOFCvJrt=s1280&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgrkLdF4chj4O6ULpAxSMZaOI1SFFNn2C38aevoz7gN1V51p7hOWk01apYz6_UxakE3oPFAUvtLG7l9TWGXgETrj8EUcxvmvLsD4QZXm1suFZFrl7w3_O3tK3Y1X1tlztW8IVycv87A5XJWvSq42sSFeuy5m9fi4j0o7MqvDlSyNgtpy4FCfOFCvJrt=w400-h225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Note:- Please help me to grow my Youtube Channel called &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;. 👈Click on this you will automatically redirected to my channel.&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/1442450392077259898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/carrom-board-game-using-python-simple.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/1442450392077259898'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/1442450392077259898'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/carrom-board-game-using-python-simple.html' title='Carrom Board Game using Python | Simple Python Project | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgrkLdF4chj4O6ULpAxSMZaOI1SFFNn2C38aevoz7gN1V51p7hOWk01apYz6_UxakE3oPFAUvtLG7l9TWGXgETrj8EUcxvmvLsD4QZXm1suFZFrl7w3_O3tK3Y1X1tlztW8IVycv87A5XJWvSq42sSFeuy5m9fi4j0o7MqvDlSyNgtpy4FCfOFCvJrt=s72-w400-h225-c" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-3938736120570203031</id><published>2021-10-07T23:16:00.007-07:00</published><updated>2021-10-07T23:57:08.677-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Games"/><title type='text'>Flappy Bird Game using Python 🔥🔥 Python in Pydroid3 | Amazing Python Project | Vast Coding</title><content type='html'>&lt;b&gt;Flappy Bird Game using Python 🔥🔥 Python in Pydroid3 | Amazing Python Project&lt;/b&gt; | &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Here is the Source Code:-&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;u&gt;main.py&lt;/u&gt;&lt;/i&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;
import pygame
import random

from objects import Grumpy, Pipe, Base, Score

# Setup *******************************************

pygame.init()
SCREEN = WIDTH, HEIGHT = 288, 512
display_height = 0.80 * HEIGHT
info = pygame.display.Info()

width = info.current_w
height = info.current_h

if width &amp;gt;= height:
	win = pygame.display.set_mode(SCREEN, pygame.NOFRAME)
else:
	win = pygame.display.set_mode(SCREEN, pygame.NOFRAME | pygame.SCALED | pygame.FULLSCREEN)

# win = pygame.display.set_mode(SCREEN, pygame.SCALED | pygame.FULLSCREEN)
clock = pygame.time.Clock()
FPS = 60

# COLORS

RED = (255, 0, 0)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)

# Backgrounds

bg1 = pygame.image.load(&#39;Assets/background-day.png&#39;)
bg2 = pygame.image.load(&#39;Assets/background-night.png&#39;)

bg = random.choice([bg1, bg2])

im_list = [pygame.image.load(&#39;Assets/pipe-green.png&#39;), pygame.image.load(&#39;Assets/pipe-red.png&#39;)]
pipe_img = random.choice(im_list)

gameover_img =  pygame.image.load(&#39;Assets/gameover.png&#39;)
flappybird_img =  pygame.image.load(&#39;Assets/flappybird.png&#39;)
flappybird_img = pygame.transform.scale(flappybird_img, (200,80))

# Sounds &amp;amp; fx


die_fx = pygame.mixer.Sound(&#39;Sounds/die.wav&#39;)
hit_fx = pygame.mixer.Sound(&#39;Sounds/hit.wav&#39;)
point_fx = pygame.mixer.Sound(&#39;Sounds/point.wav&#39;)
swoosh_fx = pygame.mixer.Sound(&#39;Sounds/swoosh.wav&#39;)
wing_fx = pygame.mixer.Sound(&#39;Sounds/wing.wav&#39;)

# Objects

pipe_group = pygame.sprite.Group()
base = Base(win)
score_img = Score(WIDTH // 2, 50, win)
grumpy = Grumpy(win)

# Variables

base_height = 0.80 * HEIGHT
speed = 0
game_started = False
game_over = False
restart = False
score = 0
start_screen = True
pipe_pass = False
pipe_frequency = 1600

running =  True
while running:
	win.blit(bg, (0,0))
	
	if start_screen:
		speed = 0
		grumpy.draw_flap()
		base.update(speed)
		
		win.blit(flappybird_img, (40, 50))
	else:
		
		if game_started and not game_over:
			
			next_pipe = pygame.time.get_ticks()
			if next_pipe - last_pipe &amp;gt;= pipe_frequency:
				y = display_height // 2
				pipe_pos = random.choice(range(-100,100,4))
				height = y + pipe_pos
				
				top = Pipe(win, pipe_img, height, 1)
				bottom = Pipe(win, pipe_img, height, -1)
				pipe_group.add(top)
				pipe_group.add(bottom)
				last_pipe = next_pipe
		
		pipe_group.update(speed)
		base.update(speed)	
		grumpy.update()
		score_img.update(score)
		
		if pygame.sprite.spritecollide(grumpy, pipe_group, False) or grumpy.rect.top &amp;lt;= 0:
			game_started = False
			if grumpy.alive:
				hit_fx.play()
				die_fx.play()
			grumpy.alive = False
			grumpy.theta = grumpy.vel * -2
	
		if grumpy.rect.bottom &amp;gt;= display_height:
			speed = 0
			game_over = True
	
		if len(pipe_group) &amp;gt; 0:
			p = pipe_group.sprites()[0]
			if grumpy.rect.left &amp;gt; p.rect.left and grumpy.rect.right &amp;lt; p.rect.right and not pipe_pass and grumpy.alive:
				pipe_pass = True
	
			if pipe_pass:
				if grumpy.rect.left &amp;gt; p.rect.right:
					pipe_pass = False
					score += 1
					point_fx.play()
					
	if not grumpy.alive:
		win.blit(gameover_img, (50,200))
		
	for event in pygame.event.get():
		if event.type == pygame.QUIT:
			running = False
		if event.type == pygame.KEYDOWN:
			if event.key == pygame.K_ESCAPE or \
				event.key == pygame.K_q:
				running = False
		if event.type == pygame.MOUSEBUTTONDOWN:
			if start_screen:
				game_started = True
				speed = 2
				start_screen = False

				game_over = False
			#	grumpy.reset()
				last_pipe = pygame.time.get_ticks() - pipe_frequency
				next_pipe = 0
				pipe_group.empty()
				
				speed = 2
				score = 0
				
			if game_over:
				start_screen = True
				grumpy = Grumpy(win)
				pipe_img = random.choice(im_list)
				bg = random.choice([bg1, bg2])
				
			

	clock.tick(FPS)
	pygame.display.update()
pygame.quit()&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;u&gt;&lt;i&gt;

objects.py
&lt;/i&gt;&lt;/u&gt;&lt;pre&gt;&lt;code&gt;
import pygame
import random

SCREEN = WIDTH, HEIGHT = 288, 512
display_height = 0.80 * HEIGHT

pygame.mixer.init()
wing_fx = pygame.mixer.Sound(&#39;Sounds/wing.wav&#39;)

class Grumpy:
	def __init__(self, win):
		self.win = win

		self.im_list = []
		bird_color = random.choice([&#39;red&#39;, &#39;blue&#39;, &#39;yellow&#39;])
		for i in range(1,4):
			img =  pygame.image.load(f&#39;Assets/Grumpy/{bird_color}{i}.png&#39;)
			self.im_list.append(img)
		
		self.reset()
		
	def update(self):
		# gravity
		self.vel += 0.3
		if self.vel &amp;gt;= 8:
			self.vel = 8
		if self.rect.bottom &amp;lt;= display_height:
			self.rect.y += int(self.vel)
		
		if self.alive:
			
			# jump
			if pygame.mouse.get_pressed()[0] == 1 and not self.jumped:
				wing_fx.play()
				self.jumped = True
				self.vel = -6
			if pygame.mouse.get_pressed()[0] == 0:
				self.jumped = False
			
			self.flap_counter()
			
			self.image = pygame.transform.rotate(self.im_list[self.index], self.vel * -2)
		else:
			if self.rect.bottom &amp;lt;= display_height:
				self.theta -= 2
			self.image = pygame.transform.rotate(self.im_list[self.index], self.theta)
			
	#	if not alive:
	#		self.image = self.im_list[1]
		
		self.win.blit(self.image, self.rect)
		
	def flap_counter(self):
		#animation
		self.counter += 1
		if self.counter &amp;gt; 5:
			self.counter = 0
			self.index += 1
		if self.index &amp;gt;= 3:
			self.index = 0
			
	def draw_flap(self):
		self.flap_counter()
		if self.flap_pos &amp;lt;= -10 or self.flap_pos &amp;gt; 10:
			self.flap_inc *= -1
		self.flap_pos += self.flap_inc
		self.rect.y += self.flap_inc
		self.rect.x = WIDTH // 2 - 20
		self.image = self.im_list[self.index]
		self.win.blit(self.image, self.rect)
		
	def reset(self):
		self.index = 0
		self.image = self.im_list[self.index]
		self.rect = self.image.get_rect()
		self.rect.x = 60
		self.rect.y = int(display_height) // 2
		self.counter = 0
		self.vel = 0
		self.jumped = False
		self.alive = True
		self.theta = 0
		self.mid_pos = display_height // 2
		self.flap_pos = 0
		self.flap_inc = 1

class Base:
	def __init__(self, win):
		self.win = win

		self.image1 = pygame.image.load(&#39;Assets/base.png&#39;)
		self.image2 = self.image1
		self.rect1 = self.image1.get_rect()
		self.rect1.x = 0
		self.rect1.y = int(display_height)
		self.rect2 = self.image2.get_rect()
		self.rect2.x = WIDTH
		self.rect2.y = int(display_height)
		
	def update(self, speed):
		self.rect1.x -= speed
		self.rect2.x -= speed
		
		if self.rect1.right &amp;lt;= 0:
			self.rect1.x = WIDTH - 5
		if self.rect2.right &amp;lt;= 0:
			self.rect2.x = WIDTH - 5

		self.win.blit(self.image1, self.rect1)
		self.win.blit(self.image2, self.rect2)


class Pipe(pygame.sprite.Sprite):
	def __init__(self, win, image, y, position):
		super(Pipe, self).__init__()
		
		self.win = win
		self.image = image
		self.rect = self.image.get_rect()
		pipe_gap = 100 // 2
		x = WIDTH

		if position == 1:
			self.image = pygame.transform.flip(self.image, False, True)
			self.rect.bottomleft = (x, y - pipe_gap)
		elif position == -1:
			self.rect.topleft = (x, y + pipe_gap)
		
	def update(self, speed):
		self.rect.x -= speed
		if self.rect.right &amp;lt; 0:
			self.kill()
		self.win.blit(self.image,  self.rect)
		
class Score:
	def __init__(self, x, y, win):
		self.score_list = []
		for score in range(10):
			img = pygame.image.load(f&#39;Assets/Score/{score}.png&#39;)
			self.score_list.append(img)
			self.x = x
			self.y = y

		self.win = win
		
	def update(self, score):
		score = str(score)
		for index, num in enumerate(score):
			self.image = self.score_list[int(num)]
			self.rect = self.image.get_rect()
			self.rect.topleft = self.x - 15 * len(score) + 30 * index, self.y
			self.win.blit(self.image, self.rect)import pygame
import random

SCREEN = WIDTH, HEIGHT = 288, 512
display_height = 0.80 * HEIGHT

pygame.mixer.init()
wing_fx = pygame.mixer.Sound(&#39;Sounds/wing.wav&#39;)

class Grumpy:
	def __init__(self, win):
		self.win = win

		self.im_list = []
		bird_color = random.choice([&#39;red&#39;, &#39;blue&#39;, &#39;yellow&#39;])
		for i in range(1,4):
			img =  pygame.image.load(f&#39;Assets/Grumpy/{bird_color}{i}.png&#39;)
			self.im_list.append(img)
		
		self.reset()
		
	def update(self):
		# gravity
		self.vel += 0.3
		if self.vel &amp;gt;= 8:
			self.vel = 8
		if self.rect.bottom &amp;lt;= display_height:
			self.rect.y += int(self.vel)
		
		if self.alive:
			
			# jump
			if pygame.mouse.get_pressed()[0] == 1 and not self.jumped:
				wing_fx.play()
				self.jumped = True
				self.vel = -6
			if pygame.mouse.get_pressed()[0] == 0:
				self.jumped = False
			
			self.flap_counter()
			
			self.image = pygame.transform.rotate(self.im_list[self.index], self.vel * -2)
		else:
			if self.rect.bottom &amp;lt;= display_height:
				self.theta -= 2
			self.image = pygame.transform.rotate(self.im_list[self.index], self.theta)
			
	#	if not alive:
	#		self.image = self.im_list[1]
		
		self.win.blit(self.image, self.rect)
		
	def flap_counter(self):
		#animation
		self.counter += 1
		if self.counter &amp;gt; 5:
			self.counter = 0
			self.index += 1
		if self.index &amp;gt;= 3:
			self.index = 0
			
	def draw_flap(self):
		self.flap_counter()
		if self.flap_pos &amp;lt;= -10 or self.flap_pos &amp;gt; 10:
			self.flap_inc *= -1
		self.flap_pos += self.flap_inc
		self.rect.y += self.flap_inc
		self.rect.x = WIDTH // 2 - 20
		self.image = self.im_list[self.index]
		self.win.blit(self.image, self.rect)
		
	def reset(self):
		self.index = 0
		self.image = self.im_list[self.index]
		self.rect = self.image.get_rect()
		self.rect.x = 60
		self.rect.y = int(display_height) // 2
		self.counter = 0
		self.vel = 0
		self.jumped = False
		self.alive = True
		self.theta = 0
		self.mid_pos = display_height // 2
		self.flap_pos = 0
		self.flap_inc = 1

class Base:
	def __init__(self, win):
		self.win = win

		self.image1 = pygame.image.load(&#39;Assets/base.png&#39;)
		self.image2 = self.image1
		self.rect1 = self.image1.get_rect()
		self.rect1.x = 0
		self.rect1.y = int(display_height)
		self.rect2 = self.image2.get_rect()
		self.rect2.x = WIDTH
		self.rect2.y = int(display_height)
		
	def update(self, speed):
		self.rect1.x -= speed
		self.rect2.x -= speed
		
		if self.rect1.right &amp;lt;= 0:
			self.rect1.x = WIDTH - 5
		if self.rect2.right &amp;lt;= 0:
			self.rect2.x = WIDTH - 5

		self.win.blit(self.image1, self.rect1)
		self.win.blit(self.image2, self.rect2)


class Pipe(pygame.sprite.Sprite):
	def __init__(self, win, image, y, position):
		super(Pipe, self).__init__()
		
		self.win = win
		self.image = image
		self.rect = self.image.get_rect()
		pipe_gap = 100 // 2
		x = WIDTH

		if position == 1:
			self.image = pygame.transform.flip(self.image, False, True)
			self.rect.bottomleft = (x, y - pipe_gap)
		elif position == -1:
			self.rect.topleft = (x, y + pipe_gap)
		
	def update(self, speed):
		self.rect.x -= speed
		if self.rect.right &amp;lt; 0:
			self.kill()
		self.win.blit(self.image,  self.rect)
		
class Score:
	def __init__(self, x, y, win):
		self.score_list = []
		for score in range(10):
			img = pygame.image.load(f&#39;Assets/Score/{score}.png&#39;)
			self.score_list.append(img)
			self.x = x
			self.y = y

		self.win = win
		
	def update(self, score):
		score = str(score)
		for index, num in enumerate(score):
			self.image = self.score_list[int(num)]
			self.rect = self.image.get_rect()
			self.rect.topleft = self.x - 15 * len(score) + 30 * index, self.y
			self.win.blit(self.image, self.rect)
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
Output:-&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEir1z6rl4IbTWfG8ourLQKJFdSY-sFcqbVJYa7fwQL3IrlvIIR60QtGar6PEYB_Tou2g1hdE77pCPIM6vr1yfGGrOrWSsTUb0_sxOwqaz1YOq84i-4aWQFRMMmQRiQvegaDXfKqQKBTykV4Wts8anHI2-N7qEvYFzMmc0C4uKdqjMQB_IyFZrha5fAP=s1280&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEir1z6rl4IbTWfG8ourLQKJFdSY-sFcqbVJYa7fwQL3IrlvIIR60QtGar6PEYB_Tou2g1hdE77pCPIM6vr1yfGGrOrWSsTUb0_sxOwqaz1YOq84i-4aWQFRMMmQRiQvegaDXfKqQKBTykV4Wts8anHI2-N7qEvYFzMmc0C4uKdqjMQB_IyFZrha5fAP=w400-h225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download Source Code and All Files from here👇&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/142SunlwrDJtbx7OvM-1Act0pbu8H8hma/view?usp=drivesdk&quot; rel=&quot;nofollow&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;133&quot; data-original-width=&quot;300&quot; height=&quot;89&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhMS7DxS6LEPsw9jCY4DuX1yrJ95XFu65YR6wiqtZeiB8LhP65QjRDywVCF582DGjjhbHcB6GhgrhpJnmTQU5UrctLljm_9BMLW1PQPB5DAUSca2NgX8NnGb9M_FzLT4VyIm1imBid09W9pnISLLCoAZohYiBWm9R0dzuHY19A2Nen8K2-JQNVxsQiz=w200-h89&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;
Steps to run code:-&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;1) Download the zip file from the download button.&lt;/div&gt;&lt;div&gt;2)Make a folder in your storage.&lt;/div&gt;&lt;div&gt;3)Extract zip file in the folder.&lt;/div&gt;&lt;div&gt;4)Open Pydroid3 and then open.py files.&lt;/div&gt;&lt;div&gt;5)Run the code and Enjoy your Game😃&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Note:- Please help me to grow my Youtube Channel called &lt;/u&gt;&lt;/b&gt;&quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/3938736120570203031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/flappy-bird-game-using-python-python-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/3938736120570203031'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/3938736120570203031'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/flappy-bird-game-using-python-python-in.html' title='Flappy Bird Game using Python 🔥🔥 Python in Pydroid3 | Amazing Python Project | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEir1z6rl4IbTWfG8ourLQKJFdSY-sFcqbVJYa7fwQL3IrlvIIR60QtGar6PEYB_Tou2g1hdE77pCPIM6vr1yfGGrOrWSsTUb0_sxOwqaz1YOq84i-4aWQFRMMmQRiQvegaDXfKqQKBTykV4Wts8anHI2-N7qEvYFzMmc0C4uKdqjMQB_IyFZrha5fAP=s72-w400-h225-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-2069652244420105505</id><published>2021-10-05T00:44:00.010-07:00</published><updated>2021-10-08T23:30:59.138-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>One Plus 1+ Logo using Python Turtle Graphics | Python Project | Vast Coding</title><content type='html'>&lt;b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;One Plus&lt;/span&gt;&lt;/span&gt; Logo using Python Turtle Programming | Simple Python Project | &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Source Code Credit:- &lt;a href=&quot;https://youtube.com/channel/UCsqvjtoCDdJeKew_djB-QgA&quot;&gt;SUBHANKER CODES&lt;/a&gt;&amp;nbsp;👈(Click to redirect on his YouTube Channel)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Here is the Source Code:-&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;code class=&quot;language-Python&quot;&gt;
import turtle as t
t.speed(3)
t.bgcolor(&#39;black&#39;)
t.up()
t.pencolor(&#39;red&#39;)
t.fillcolor(&#39;red&#39;)
t.setpos(200,20)
t.rt(90)
t.down()
t.begin_fill()
t.fd(300)
t.rt(90)
t.fd(500)
t.rt(90)
t.fd(500)
t.rt(90)
t.fd(300)
t.rt(90)
t.fd(40)
t.rt(90)
t.fd(260)
t.lt(90)
t.fd(420)
t.lt(90)
t.fd(420)
t.lt(90)
t.fd(260)
t.rt(90)
t.fd(40)
t.lt(90)
t.end_fill()
t.up()
t.fd(60)
t.down()
t.begin_fill()
t.fd(100)
t.rt(90)
t.fd(100)
t.lt(90)
t.fd(40)
t.lt(90)
t.fd(100)
t.rt(90)
t.fd(100)
t.lt(90)
t.fd(40)
t.lt(90)
t.fd(100)
t.rt(90)
t.fd(100)
t.lt(90)
t.fd(40)
t.lt(90)
t.fd(100)
t.rt(90)
t.fd(100)
t.lt(90)
t.fd(40)
t.end_fill()
t.up()
t.rt(180)
t.fd(250)
t.down()
t.begin_fill()
t.fd(80)
t.lt(90)
t.fd(40)
t.lt(90)
t.fd(50)
t.rt(90)
t.fd(160)
t.rt(90)
t.fd(50)
t.lt(90)
t.fd(40)
t.lt(90)
t.fd(140)
t.lt(90)
t.fd(40)
t.lt(90)
t.fd(50)
t.rt(90)
t.fd(200)
t.lt(90)
t.fd(10)
t.end_fill()
t.ht()
t.done()
&lt;/code&gt;&lt;/pre&gt;&lt;u&gt;&lt;b&gt;

Output:-&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg0QibnpfuvSr94p4JT8dlmI8FlDYbMr1SoHqiUENfBWmlyx_V5zrjaed07L7bbdOm_KQYczf6D5yWdT0HxS2hQgikhy2wsAonxP10v93wKZGnGbkz9qqSr1_ZRa1z4aB1KMOyx1UsRUSg1VoKXFfBjutd2oxKTtoT_pTTm0Mb3zCiWvkJjN0coaFSX=s1280&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg0QibnpfuvSr94p4JT8dlmI8FlDYbMr1SoHqiUENfBWmlyx_V5zrjaed07L7bbdOm_KQYczf6D5yWdT0HxS2hQgikhy2wsAonxP10v93wKZGnGbkz9qqSr1_ZRa1z4aB1KMOyx1UsRUSg1VoKXFfBjutd2oxKTtoT_pTTm0Mb3zCiWvkJjN0coaFSX=w400-h225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;Note:- Please help me to grow my Youtube Channel called &quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/2069652244420105505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/one-plus-1-logo-using-python-turtle.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/2069652244420105505'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/2069652244420105505'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/one-plus-1-logo-using-python-turtle.html' title='One Plus 1+ Logo using Python Turtle Graphics | Python Project | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEg0QibnpfuvSr94p4JT8dlmI8FlDYbMr1SoHqiUENfBWmlyx_V5zrjaed07L7bbdOm_KQYczf6D5yWdT0HxS2hQgikhy2wsAonxP10v93wKZGnGbkz9qqSr1_ZRa1z4aB1KMOyx1UsRUSg1VoKXFfBjutd2oxKTtoT_pTTm0Mb3zCiWvkJjN0coaFSX=s72-w400-h225-c" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-5654715289648902055</id><published>2021-10-03T07:50:00.005-07:00</published><updated>2021-10-03T08:01:43.181-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Netflix Logo using Python Turtle Programming | Simple Python Project | Vast Coding</title><content type='html'>&lt;div&gt;&lt;b&gt;Netflix Logo using Python Turtle Programming | Simple Python Project&lt;/b&gt; | &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Here is the Source Code&lt;/u&gt;:-&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;import turtle
t = turtle.Turtle()
t.speed(10)
turtle.bgcolor(&quot;white&quot;)
t.color(&quot;white&quot;)
t.up()
t.goto(-80,50)
t.down()
t.fillcolor(&quot;black&quot;)
t.begin_fill()
t.forward(200)
t.setheading(270)
s = 360
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

    
t.forward(180)
s = 270
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

t.forward(200)
s = 180
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

t.forward(180)
s = 90
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)
t.forward(30)    
t.end_fill()
t.up()
t.color(&quot;black&quot;)
t.setheading(270)
t.forward(240)
t.setheading(0)
t.down()
t.color(&quot;red&quot;)
t.fillcolor(&quot;#E50914&quot;)
t.begin_fill()
t.forward(30)
t.setheading(90)
t.forward(180)
t.setheading(180)
t.forward(30)
t.setheading(270)
t.forward(180)
t.end_fill()
t.setheading(0)
t.up()
t.forward(75)
t.down()
t.color(&quot;red&quot;)
t.fillcolor(&quot;#E50914&quot;)
t.begin_fill()
t.forward(30)
t.setheading(90)
t.forward(180)
t.setheading(180)
t.forward(30)
t.setheading(270)
t.forward(180)
t.end_fill()
t.color(&quot;red&quot;)
t.fillcolor(&quot;red&quot;)
t.begin_fill()
t.setheading(113)
t.forward(195)
t.setheading(0)
t.forward(31)
t.setheading(293)
t.forward(196)
t.end_fill()
t.hideturtle()
turtle.done()&lt;/code&gt;&lt;/pre&gt;&lt;u&gt;

Output&lt;/u&gt;:-
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgW-KTRT3d3wp62R73mmGb0eS_84tZf6Wyej2alceBj3I5NlBMOzjlk0zySG5GXFYHfsACtxdcvnTwmVTnPqXdxjXTjMvOKQKEmTZ4RJjNvFmiGZ4UoUjqqyf525911jkc0W7g4qTsQ9659hc9Ek0oRd3TVQa8zJrV7bOoGS6YOYYbFYozOFIPIRn9g=s1280&quot; style=&quot;display: block; margin-left: auto; margin-right: auto; padding: 1em 0px; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgW-KTRT3d3wp62R73mmGb0eS_84tZf6Wyej2alceBj3I5NlBMOzjlk0zySG5GXFYHfsACtxdcvnTwmVTnPqXdxjXTjMvOKQKEmTZ4RJjNvFmiGZ4UoUjqqyf525911jkc0W7g4qTsQ9659hc9Ek0oRd3TVQa8zJrV7bOoGS6YOYYbFYozOFIPIRn9g=s400&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Note:- Please help me to grow my Channel Called &quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/5654715289648902055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/netflix-logo-using-python-turtle.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/5654715289648902055'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/5654715289648902055'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/netflix-logo-using-python-turtle.html' title='Netflix Logo using Python Turtle Programming | Simple Python Project | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgW-KTRT3d3wp62R73mmGb0eS_84tZf6Wyej2alceBj3I5NlBMOzjlk0zySG5GXFYHfsACtxdcvnTwmVTnPqXdxjXTjMvOKQKEmTZ4RJjNvFmiGZ4UoUjqqyf525911jkc0W7g4qTsQ9659hc9Ek0oRd3TVQa8zJrV7bOoGS6YOYYbFYozOFIPIRn9g=s72-c" height="72" width="72"/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-194542615406616483</id><published>2021-10-02T06:17:00.007-07:00</published><updated>2022-05-02T06:09:38.819-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Python Logo by Python Turtle Graphics | Simple Python Project | Simple Python Turtle Programming</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;Python Logo by Python Turtle Graphics | Simple Python Project | Vast Coding&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;Here is the Source Code:-&lt;/u&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;import turtle&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;t = turtle.Turtle()&lt;/p&gt;&lt;p&gt;s = turtle.Screen()&lt;/p&gt;&lt;p&gt;s.bgcolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;t.speed(0)&lt;/p&gt;&lt;p&gt;t.pensize(2)&lt;/p&gt;&lt;p&gt;t.pencolor(&quot;white&quot;)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def s_curve():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for i in range(90):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.left(1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.forward(1)&lt;/p&gt;&lt;p&gt;def r_curve():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for i in range(90):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.right(1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.forward(1)&lt;/p&gt;&lt;p&gt;def l_curve():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; s_curve()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(80)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; s_curve()&lt;/p&gt;&lt;p&gt;def l_curve1():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; s_curve()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; s_curve()&lt;/p&gt;&lt;p&gt;def half():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(50)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; s_curve()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; l_curve()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(40)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.left(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(80)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.right(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(10)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.right(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(120) #on test&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; l_curve1()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(30)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.left(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(50)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; r_curve()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(40)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.end_fill()&lt;/p&gt;&lt;p&gt;def get_pos():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(20)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.right(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(10)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.right(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.pendown()&lt;/p&gt;&lt;p&gt;def eye():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.right(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(160)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.left(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(70)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.dot(35)&lt;/p&gt;&lt;p&gt;def sec_dot():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.left(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(310)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.left(90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.forward(120)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.dot(35)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;t.fillcolor(&quot;#306998&quot;)&lt;/p&gt;&lt;p&gt;t.begin_fill()&lt;/p&gt;&lt;p&gt;half()&lt;/p&gt;&lt;p&gt;t.end_fill()&lt;/p&gt;&lt;p&gt;get_pos()&lt;/p&gt;&lt;p&gt;t.fillcolor(&quot;#FFD43B&quot;)&lt;/p&gt;&lt;p&gt;t.begin_fill()&lt;/p&gt;&lt;p&gt;half()&lt;/p&gt;&lt;p&gt;t.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;eye()&lt;/p&gt;&lt;p&gt;sec_dot()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def pause():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; t.speed(2)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for i in range(100):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.left(90)&lt;/p&gt;&lt;p&gt;pause()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Output:-&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbpdctPLad2PwoVcB0ChGMG1tlnZnBaiA6bxlDlfQDIQKxPIvZgVRrlocUJV7fvvprhjKNKEhQIO-alpIQ7JwkdiiHm5qa_D5qaYILjzma5AE_-Hki0z_LCkUWJmm4tUrnHl6IWe5X9tN5YaC0wpswT_ozN-VuYj8T63mFS6wtpsOp4zejT0lgG3w/s480/vast%20coding11.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;480&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbpdctPLad2PwoVcB0ChGMG1tlnZnBaiA6bxlDlfQDIQKxPIvZgVRrlocUJV7fvvprhjKNKEhQIO-alpIQ7JwkdiiHm5qa_D5qaYILjzma5AE_-Hki0z_LCkUWJmm4tUrnHl6IWe5X9tN5YaC0wpswT_ozN-VuYj8T63mFS6wtpsOp4zejT0lgG3w/w200-h200/vast%20coding11.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;NOTE:- Please help me to grow my Youtube Channel called &quot;&lt;span style=&quot;color: #2b00fe;&quot;&gt;Vast Coding&lt;/span&gt;&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/194542615406616483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/10/python-logo-by-python-turtle-graphics.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/194542615406616483'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/194542615406616483'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/10/python-logo-by-python-turtle-graphics.html' title='Python Logo by Python Turtle Graphics | Simple Python Project | Simple Python Turtle Programming'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbpdctPLad2PwoVcB0ChGMG1tlnZnBaiA6bxlDlfQDIQKxPIvZgVRrlocUJV7fvvprhjKNKEhQIO-alpIQ7JwkdiiHm5qa_D5qaYILjzma5AE_-Hki0z_LCkUWJmm4tUrnHl6IWe5X9tN5YaC0wpswT_ozN-VuYj8T63mFS6wtpsOp4zejT0lgG3w/s72-w200-h200-c/vast%20coding11.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-1473518052813711028</id><published>2021-09-30T07:51:00.004-07:00</published><updated>2021-09-30T07:51:59.621-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Akemi Homura(Anime Character) Drawing using Python Turtle Programming | Simple Python Turtle Graphics | Vast Coding</title><content type='html'>&lt;p&gt;&lt;b&gt;Akemi Homura(Anime Character) Drawing using Python Turtle Programming | Simple Python Turtle Graphics | &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Here is the Source Code:-&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Wait at least 30seconds after running this code,it will draw anime character after 30seconds automatically.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;import turtle as te&lt;/p&gt;&lt;p&gt;import time&lt;/p&gt;&lt;p&gt;WriteStep = 15  # Sampling times of Bessel function&lt;/p&gt;&lt;p&gt;Speed = 5&lt;/p&gt;&lt;p&gt;Width = 600  # Interface width&lt;/p&gt;&lt;p&gt;Height = 500  # Interface height&lt;/p&gt;&lt;p&gt;Xh = 0  # Record the handle of the previous Bessel function&lt;/p&gt;&lt;p&gt;Yh = 0&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Bezier(p1, p2, t):  # First order Bessel function&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; return p1 * (1 - t) + p2 * t&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Bezier_2(x1, y1, x2, y2, x3, y3):  # Second-order Bessel function&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(x1, y1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for t in range(0, WriteStep + 1):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x = Bezier(Bezier(x1, x2, t / WriteStep),&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bezier(x2, x3, t / WriteStep), t / WriteStep)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y = Bezier(Bezier(y1, y2, t / WriteStep),&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bezier(y2, y3, t / WriteStep), t / WriteStep)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; te.goto(x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Bezier_3(x1, y1, x2, y2, x3, y3, x4, y4):  # Third-order Bessel function&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; x1 = -Width / 2 + x1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; y1 = Height / 2 - y1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; x2 = -Width / 2 + x2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; y2 = Height / 2 - y2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; x3 = -Width / 2 + x3&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; y3 = Height / 2 - y3&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; x4 = -Width / 2 + x4&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; y4 = Height / 2 - y4  # Coordinate transformation&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(x1, y1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for t in range(0, WriteStep + 1):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x = Bezier(Bezier(Bezier(x1, x2, t / WriteStep), Bezier(x2, x3, t / WriteStep), t / WriteStep),&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bezier(Bezier(x2, x3, t / WriteStep), Bezier(x3, x4, t / WriteStep), t / WriteStep), t / WriteStep)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y = Bezier(Bezier(Bezier(y1, y2, t / WriteStep), Bezier(y2, y3, t / WriteStep), t / WriteStep),&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bezier(Bezier(y2, y3, t / WriteStep), Bezier(y3, y4, t / WriteStep), t / WriteStep), t / WriteStep)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; te.goto(x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Moveto(x, y):  # Move to svg coordinates (x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(-Width / 2 + x, Height / 2 - y)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def line(x1, y1, x2, y2):  # Connect two points under svg coordinates&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(-Width / 2 + x1, Height / 2 - y1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(-Width / 2 + x2, Height / 2 - y2)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def lineto(dx, dy):  # Connect the current point and the point with relative coordinates (dx, dy)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(te.xcor() + dx, te.ycor() - dy)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Lineto(x, y):  # Connect the current point and svg coordinates (x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(-Width / 2 + x, Height / 2 - y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Horizontal(x):  # Make the horizontal line with the abscissa x in the svg coordinates&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.setx(x - Width / 2)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def horizontal(dx):  # Make the horizontal line with relative abscissa dx&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.seth(0)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.fd(dx)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def vertical(dy):  # Make the vertical line with the relative ordinate dy&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.seth(-90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.fd(dy)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.seth(0)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def polyline(x1, y1, x2, y2, x3, y3):  # Make a polyline under svg coordinates&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(-Width / 2 + x1, Height / 2 - y1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.pendown()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(-Width / 2 + x2, Height / 2 - y2)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.goto(-Width / 2 + x3, Height / 2 - y3)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Curveto(x1, y1, x2, y2, x, y):  # Third-order Bezier curve to (x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; X_now = te.xcor() + Width / 2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Y_now = Height / 2 - te.ycor()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Bezier_3(X_now, Y_now, x1, y1, x2, y2, x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Xh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Yh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Xh = x - x2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Yh = y - y2&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def curveto_r(x1, y1, x2, y2, x, y):  # Third-order Bezier curve to relative coordinates (x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; X_now = te.xcor() + Width / 2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Y_now = Height / 2 - te.ycor()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Bezier_3(X_now, Y_now, X_now + x1, Y_now + y1,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X_now + x2, Y_now + y2, X_now + x, Y_now + y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Xh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Yh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Xh = x - x2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Yh = y - y2&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def Smooth(x2, y2, x, y):  # Smooth the third-order Bezier curve to (x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Xh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Yh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; X_now = te.xcor() + Width / 2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Y_now = Height / 2 - te.ycor()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Bezier_3(X_now, Y_now, X_now + Xh, Y_now + Yh, x2, y2, x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Xh = x - x2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Yh = y - y2&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def smooth_r(x2, y2, x, y):  # Smooth the third-order Bezier curve to relative coordinates (x, y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Xh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global Yh&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; te.penup()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; X_now = te.xcor() + Width / 2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Y_now = Height / 2 - te.ycor()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Bezier_3(X_now, Y_now, X_now + Xh, Y_now + Yh,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X_now + x2, Y_now + y2, X_now + x, Y_now + y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Xh = x - x2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Yh = y - y2&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;te.tracer(10)&lt;/p&gt;&lt;p&gt;te.setup(Width, Height, 0, 0)&lt;/p&gt;&lt;p&gt;te.pensize(1)&lt;/p&gt;&lt;p&gt;te.speed(Speed)&lt;/p&gt;&lt;p&gt;te.penup()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Layer_2&lt;/p&gt;&lt;p&gt;time.sleep(20)&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#F2F2F2&quot;)  # Coat&lt;/p&gt;&lt;p&gt;Moveto(61, 462)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;smooth_r(12, -41, 27, -58)&lt;/p&gt;&lt;p&gt;curveto_r(-6, -36, 6, -118, 9, -132)&lt;/p&gt;&lt;p&gt;curveto_r(-15, -27, -23, -51, -26, -74)&lt;/p&gt;&lt;p&gt;curveto_r(4, -66, 38, -105, 65, -149)&lt;/p&gt;&lt;p&gt;Horizontal(486)&lt;/p&gt;&lt;p&gt;curveto_r(12, 24, 40, 99, 33, 114)&lt;/p&gt;&lt;p&gt;curveto_r(39, 82, 55, 129, 39, 144)&lt;/p&gt;&lt;p&gt;smooth_r(-31, 23, -39, 28)&lt;/p&gt;&lt;p&gt;smooth_r(-12, 37, -12, 37)&lt;/p&gt;&lt;p&gt;lineto(50, 92)&lt;/p&gt;&lt;p&gt;Horizontal(445)&lt;/p&gt;&lt;p&gt;smooth_r(-29, -38, -31, -46)&lt;/p&gt;&lt;p&gt;smooth_r(78, -107, 72, -119)&lt;/p&gt;&lt;p&gt;Smooth(355, 178, 340, 176)&lt;/p&gt;&lt;p&gt;Smooth(272, 63, 264, 64)&lt;/p&gt;&lt;p&gt;smooth_r(-29, 67, -27, 73)&lt;/p&gt;&lt;p&gt;Curveto(99, 292, 174, 428, 173, 439)&lt;/p&gt;&lt;p&gt;smooth_r(-8, 23, -8, 23)&lt;/p&gt;&lt;p&gt;Lineto(61, 462)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(60.5, 461.5)  # Shadow&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#D3DFF0&quot;)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(0, 0, 17, -42, 27, -59)&lt;/p&gt;&lt;p&gt;curveto_r(-6, -33, 6, -128, 10, -133)&lt;/p&gt;&lt;p&gt;curveto_r(-15, -10, -27, -66, -27.285, -75)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D3DFF0&quot;)&lt;/p&gt;&lt;p&gt;curveto_r(12.285, 11, 82.963, 156, 82.963, 156)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;smooth_r(12.322, 75, 19.322, 86)&lt;/p&gt;&lt;p&gt;curveto_r(-1, 11, -8, 25, -8, 25)&lt;/p&gt;&lt;p&gt;Horizontal(60.5)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(444.5, 464)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(0, 0, -29, -36, -31, -46)&lt;/p&gt;&lt;p&gt;smooth_r(53.59, -82.337, 53.59, -82.337)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D3DFF0&quot;)&lt;/p&gt;&lt;p&gt;smooth_r(86.41, -47.663, 96.072, -54.85)&lt;/p&gt;&lt;p&gt;Curveto(563.5, 297.5, 570.5, 299.5, 518.5, 334)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;curveto_r(-2, 16, -12, 33, -12, 37)&lt;/p&gt;&lt;p&gt;smooth_r(50, 92, 50, 93)&lt;/p&gt;&lt;p&gt;Horizontal(444.5)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(195, 49)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D3DFF0&quot;)&lt;/p&gt;&lt;p&gt;polyline(195, 49, 175.5, 106.5, 202.522, 49)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;Horizontal(195)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D3DFF0&quot;)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(327.997, 49)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D3DFF0&quot;)&lt;/p&gt;&lt;p&gt;curveto_r(0, 0, 11.503, 121.087, 13.503, 128.087)&lt;/p&gt;&lt;p&gt;curveto_r(11, 2, 54, 37, 54, 37)&lt;/p&gt;&lt;p&gt;lineto(-40, -165.087)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;Horizontal(327.997)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D3DFF0&quot;)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;line(94.5, 397.5, 107.5, 373.5)  # Wrinkles&lt;/p&gt;&lt;p&gt;line(122.5, 317.5, 95.875, 274.699)&lt;/p&gt;&lt;p&gt;line(122.5, 341.5, 141.5, 402.5)&lt;/p&gt;&lt;p&gt;line(141.5, 409.5, 153.5, 431.5)&lt;/p&gt;&lt;p&gt;# line(328,47.712,344,175.977)&lt;/p&gt;&lt;p&gt;line(340.023, 49, 360.5, 144)&lt;/p&gt;&lt;p&gt;# line(353.5,47.5,395.5,208.5)&lt;/p&gt;&lt;p&gt;line(478.5, 95.5, 518.5, 161.5)&lt;/p&gt;&lt;p&gt;line(518.5, 332.5, 460.5, 359.5)&lt;/p&gt;&lt;p&gt;polyline(506.5, 369.5, 493.5, 402.5, 502.5, 443.5)&lt;/p&gt;&lt;p&gt;Moveto(530, 429)&lt;/p&gt;&lt;p&gt;curveto_r(4, 16, -5, 33, -5, 33)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Layer_3&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#2b1d2a&quot;)  # Inside the jacket&lt;/p&gt;&lt;p&gt;Moveto(225, 462)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;Horizontal(165)&lt;/p&gt;&lt;p&gt;smooth_r(9, -15, 8, -25)&lt;/p&gt;&lt;p&gt;curveto_r(-47, -126, 6, -212, 12, -225)&lt;/p&gt;&lt;p&gt;Curveto(185, 305, 202, 428, 225, 462)&lt;/p&gt;&lt;p&gt;Lineto(225, 462)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(390, 462)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(10, -23, 34, -180, 35, -222)  # !!!227&lt;/p&gt;&lt;p&gt;curveto_r(7, 4, 54, 45, 61, 61)  # 61&lt;/p&gt;&lt;p&gt;smooth_r(-73, 101, -72, 118)&lt;/p&gt;&lt;p&gt;curveto_r(5, 15, 31, 46, 31, 45)&lt;/p&gt;&lt;p&gt;Lineto(390, 462)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_4&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#2b1d29&quot;)  # Inside the jacket&lt;/p&gt;&lt;p&gt;Moveto(225, 462)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-28, -50, -40, -166, -40, -250)&lt;/p&gt;&lt;p&gt;curveto_r(6, 51, -6, 87, 45, 106)&lt;/p&gt;&lt;p&gt;smooth_r(64, 27, 89, 24)&lt;/p&gt;&lt;p&gt;smooth_r(49, -18, 56, -20)&lt;/p&gt;&lt;p&gt;smooth_r(50, -10, 51, -85)&lt;/p&gt;&lt;p&gt;curveto_r(0, 29, -25, 201, -36, 225)&lt;/p&gt;&lt;p&gt;Lineto(225, 462)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_5&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#3D3D3D&quot;)  # Clothes&lt;/p&gt;&lt;p&gt;Moveto(225, 462)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-5, -5, -22, -53, -23, -70)&lt;/p&gt;&lt;p&gt;lineto(32, -13)&lt;/p&gt;&lt;p&gt;curveto_r(3, -25, 6, -28, 12, -36)&lt;/p&gt;&lt;p&gt;smooth_r(13, -12, 16, -12)&lt;/p&gt;&lt;p&gt;vertical(-2)&lt;/p&gt;&lt;p&gt;curveto_r(45, 20, 64, 14, 94, 1)&lt;/p&gt;&lt;p&gt;vertical(2)&lt;/p&gt;&lt;p&gt;curveto_r(8, -2, 15, 2, 17, 4)&lt;/p&gt;&lt;p&gt;smooth_r(0, 6, -2, 9)&lt;/p&gt;&lt;p&gt;curveto_r(10, 10, 10, 29, 11, 33)&lt;/p&gt;&lt;p&gt;smooth_r(23, 4, 25, 6)&lt;/p&gt;&lt;p&gt;smooth_r(-17, 83, -17, 78)&lt;/p&gt;&lt;p&gt;Lineto(225, 462)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_6&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#968281&quot;)  # Neck&lt;/p&gt;&lt;p&gt;Moveto(262, 329)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;vertical(17)&lt;/p&gt;&lt;p&gt;curveto_r(1, 2, 44, 14, 45, 15)&lt;/p&gt;&lt;p&gt;smooth_r(3, 12, 3, 12)&lt;/p&gt;&lt;p&gt;horizontal(3)&lt;/p&gt;&lt;p&gt;vertical(-5)&lt;/p&gt;&lt;p&gt;curveto_r(1, -3, 4, -6, 5, -7)&lt;/p&gt;&lt;p&gt;lineto(36, -14)&lt;/p&gt;&lt;p&gt;curveto_r(1, -1, 3, -16, 2, -17)&lt;/p&gt;&lt;p&gt;Curveto(318, 348, 296, 344, 262, 329)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_8&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#E7F1FF&quot;)  # White folds&lt;/p&gt;&lt;p&gt;Moveto(225, 462)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;lineto(-3, -5)  # -3,-3,-3,-5&lt;/p&gt;&lt;p&gt;curveto_r(0, -2, 4, -4, 5, -6)&lt;/p&gt;&lt;p&gt;smooth_r(16, 3, 19, -8)&lt;/p&gt;&lt;p&gt;smooth_r(0, -7, 0, -11)&lt;/p&gt;&lt;p&gt;smooth_r(5, -8, 9, -5)&lt;/p&gt;&lt;p&gt;smooth_r(19, -8, 19, -11)&lt;/p&gt;&lt;p&gt;smooth_r(6, -7, 6, -7)&lt;/p&gt;&lt;p&gt;smooth_r(7, -2, 9, -4)&lt;/p&gt;&lt;p&gt;lineto(41, -2)&lt;/p&gt;&lt;p&gt;lineto(12, 9)&lt;/p&gt;&lt;p&gt;smooth_r(3, 15, 7, 18)&lt;/p&gt;&lt;p&gt;smooth_r(15, 4, 17, 4)&lt;/p&gt;&lt;p&gt;smooth_r(4, -4, 6, -4)&lt;/p&gt;&lt;p&gt;smooth_r(6, 4, 5, 9)&lt;/p&gt;&lt;p&gt;smooth_r(0, 9, 0, 9)&lt;/p&gt;&lt;p&gt;smooth_r(1, 7, 7, 6)&lt;/p&gt;&lt;p&gt;smooth_r(8, 0, 8, 0)&lt;/p&gt;&lt;p&gt;lineto(-2, 8)&lt;/p&gt;&lt;p&gt;Lineto(225, 462)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;te.pensize(2)&lt;/p&gt;&lt;p&gt;Moveto(240, 450)&lt;/p&gt;&lt;p&gt;smooth_r(0, 9, 3, 12)&lt;/p&gt;&lt;p&gt;Moveto(372, 462)&lt;/p&gt;&lt;p&gt;curveto_r(-2, -4, -5, -29, -7, -28)&lt;/p&gt;&lt;p&gt;te.pensize(1)&lt;/p&gt;&lt;p&gt;# Layer_7&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#A2B8D6&quot;)  # Collar&lt;/p&gt;&lt;p&gt;Moveto(262, 331)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(0, 8, -1, 13, 0, 15)&lt;/p&gt;&lt;p&gt;smooth_r(43, 14, 45, 15)&lt;/p&gt;&lt;p&gt;lineto(3, 12)&lt;/p&gt;&lt;p&gt;horizontal(3)&lt;/p&gt;&lt;p&gt;smooth_r(-1, -3, 0, -5)&lt;/p&gt;&lt;p&gt;lineto(5, -7)&lt;/p&gt;&lt;p&gt;lineto(36, -14)&lt;/p&gt;&lt;p&gt;curveto_r(1, -1, 2, -12, 2, -15)&lt;/p&gt;&lt;p&gt;smooth_r(25, -2, 15, 13)&lt;/p&gt;&lt;p&gt;curveto_r(-2, 4, -7, 29, -7, 32)&lt;/p&gt;&lt;p&gt;smooth_r(-35, 19, -41, 22)&lt;/p&gt;&lt;p&gt;smooth_r(-9, 14, -12, 14)&lt;/p&gt;&lt;p&gt;smooth_r(-7, -12, -14, -15)&lt;/p&gt;&lt;p&gt;curveto_r(-19, -2, -41, -25, -41, -25)&lt;/p&gt;&lt;p&gt;smooth_r(-10, -26, -10, -30)&lt;/p&gt;&lt;p&gt;Smooth(255, 332, 262, 331)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(262, 346)&lt;/p&gt;&lt;p&gt;lineto(-12, -6)&lt;/p&gt;&lt;p&gt;Moveto(369, 333)&lt;/p&gt;&lt;p&gt;curveto_r(2, 4, -6, 10, -15, 14)&lt;/p&gt;&lt;p&gt;# Layer_9&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#151515&quot;)  # Tie&lt;/p&gt;&lt;p&gt;Moveto(247, 358)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-5, 3, -8, 20, -6, 23)&lt;/p&gt;&lt;p&gt;curveto_r(25, 21, 50, 17, 50, 17)&lt;/p&gt;&lt;p&gt;lineto(-23, 64)&lt;/p&gt;&lt;p&gt;horizontal(22)&lt;/p&gt;&lt;p&gt;smooth_r(1, -13, 2, -16)&lt;/p&gt;&lt;p&gt;lineto(13, -50)&lt;/p&gt;&lt;p&gt;curveto_r(2, 2, 7, 3, 10, 1)&lt;/p&gt;&lt;p&gt;smooth_r(18, 65, 18, 65)&lt;/p&gt;&lt;p&gt;horizontal(19)&lt;/p&gt;&lt;p&gt;lineto(-24, -65)&lt;/p&gt;&lt;p&gt;curveto_r(21, 5, 39, -10, 44, -13)&lt;/p&gt;&lt;p&gt;curveto_r(5, -20, 1, -21, 0, -24)&lt;/p&gt;&lt;p&gt;curveto_r(-18, -2, -49, 15, -52, 17)&lt;/p&gt;&lt;p&gt;smooth_r(-11, -3, -15, -1)&lt;/p&gt;&lt;p&gt;Smooth(252, 356, 247, 358)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_10&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#A2B8D6&quot;)  # Collar (through bow tie)&lt;/p&gt;&lt;p&gt;Moveto(297, 387)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;lineto(-11, 6)&lt;/p&gt;&lt;p&gt;curveto_r(-1, 0, -20, -7, -30, -19)&lt;/p&gt;&lt;p&gt;Curveto(259, 373, 297, 385, 297, 387)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(323, 384)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;lineto(8, 7)&lt;/p&gt;&lt;p&gt;lineto(30, -14)&lt;/p&gt;&lt;p&gt;curveto_r(1, -1, 5, -6, 4, -7)&lt;/p&gt;&lt;p&gt;Smooth(329, 379, 323, 384)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_11&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#F3EEEB&quot;)  # Face&lt;/p&gt;&lt;p&gt;Moveto(185, 212)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(4, -9, 46, -77, 52, -75)&lt;/p&gt;&lt;p&gt;curveto_r(-2, -17, 19, -68, 27, -73)&lt;/p&gt;&lt;p&gt;curveto_r(16, 15, 71, 108, 76, 112)&lt;/p&gt;&lt;p&gt;smooth_r(76, 53, 86, 60)&lt;/p&gt;&lt;p&gt;curveto_r(0, 65, -27, 75, -31, 76)&lt;/p&gt;&lt;p&gt;curveto_r(-50, 28, -70, 30, -85, 30)&lt;/p&gt;&lt;p&gt;smooth_r(-77, -22, -86, -26)&lt;/p&gt;&lt;p&gt;Curveto(180, 302, 186, 228, 185, 212)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_12&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#2B1D29&quot;)  # Hair&lt;/p&gt;&lt;p&gt;Moveto(189, 202)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-1, 22, 19, 51, 19, 51)&lt;/p&gt;&lt;p&gt;smooth_r(-10, -42, 7, -92)&lt;/p&gt;&lt;p&gt;Curveto(212, 168, 196, 189, 189, 202)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(221, 155)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-2, 6, 5, 48, 5, 48)&lt;/p&gt;&lt;p&gt;smooth_r(18, -28, 20, -48)&lt;/p&gt;&lt;p&gt;curveto_r(-5, 24, 4, 43, 7, 50)&lt;/p&gt;&lt;p&gt;curveto_r(-10, -49, 3, -72, 13, -106)&lt;/p&gt;&lt;p&gt;curveto_r(-2, -7, -3, -32, -3, -35)&lt;/p&gt;&lt;p&gt;curveto_r(-17, 18, -27, 71, -27, 71)&lt;/p&gt;&lt;p&gt;Lineto(221, 155)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(264, 64)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-4, 5, 14, 100, 14, 100)&lt;/p&gt;&lt;p&gt;smooth_r(-6, -79, -5, -85)&lt;/p&gt;&lt;p&gt;curveto_r(0, 98, 49, 139, 49, 139)&lt;/p&gt;&lt;p&gt;smooth_r(8, -50, 3, -65)&lt;/p&gt;&lt;p&gt;Smooth(272, 64, 264, 64)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(342, 176)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-1, 27, -10, 57, -10, 57)&lt;/p&gt;&lt;p&gt;smooth_r(20, -33, 17, -54)&lt;/p&gt;&lt;p&gt;Lineto(342, 176)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;te.penup()&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;polyline(349, 180, 353, 203, 361, 203)&lt;/p&gt;&lt;p&gt;polyline(361, 203, 362, 188, 349, 180)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_13&lt;/p&gt;&lt;p&gt;te.pensize(2)&lt;/p&gt;&lt;p&gt;Moveto(210, 180)  # Eyebrows&lt;/p&gt;&lt;p&gt;curveto_r(5, -4, 63, 9, 63, 14)&lt;/p&gt;&lt;p&gt;Moveto(338, 193)&lt;/p&gt;&lt;p&gt;curveto_r(0, -3, 18, -6, 18, -6)&lt;/p&gt;&lt;p&gt;te.pensize(1)&lt;/p&gt;&lt;p&gt;# Layer_14&lt;/p&gt;&lt;p&gt;te.color(&quot;black&quot;, &quot;#D1D1D1&quot;)  # Eye 1&lt;/p&gt;&lt;p&gt;te.pensize(2)&lt;/p&gt;&lt;p&gt;Moveto(206, 212)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;lineto(15, -7)&lt;/p&gt;&lt;p&gt;curveto_r(4, -1, 26, -2, 30, 0)&lt;/p&gt;&lt;p&gt;smooth_r(10, 3, 12, 7)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D1D1D1&quot;)&lt;/p&gt;&lt;p&gt;te.pensize(1)&lt;/p&gt;&lt;p&gt;smooth_r(2, 27, -1, 30)&lt;/p&gt;&lt;p&gt;smooth_r(-39, 5, -44, 1)&lt;/p&gt;&lt;p&gt;Smooth(206, 212, 206, 212)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(384, 204)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;te.pensize(2)&lt;/p&gt;&lt;p&gt;curveto_r(-3, -1, -18, -1, -28, 1)&lt;/p&gt;&lt;p&gt;smooth_r(-9, 6, -10, 9)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;#D1D1D1&quot;)&lt;/p&gt;&lt;p&gt;te.pensize(1)&lt;/p&gt;&lt;p&gt;smooth_r(3, 18, 6, 23)&lt;/p&gt;&lt;p&gt;smooth_r(38, 6, 40, 4)&lt;/p&gt;&lt;p&gt;smooth_r(10, -9, 13, -22)&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;te.pensize(2)&lt;/p&gt;&lt;p&gt;Lineto(384, 204)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_15&lt;/p&gt;&lt;p&gt;te.color(&quot;#0C1631&quot;, &quot;#0C1631&quot;)  # Eye 2&lt;/p&gt;&lt;p&gt;te.pensize(1)&lt;/p&gt;&lt;p&gt;Moveto(216, 206)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-1, 5, 0, 26, 7, 35)&lt;/p&gt;&lt;p&gt;smooth_r(30, 2, 33, 0)&lt;/p&gt;&lt;p&gt;smooth_r(5, -31, 2, -34)&lt;/p&gt;&lt;p&gt;Smooth(219, 203, 216, 206)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(354, 207)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-2, 1, 2, 29, 4, 31)&lt;/p&gt;&lt;p&gt;smooth_r(30, 3, 33, 1)&lt;/p&gt;&lt;p&gt;smooth_r(6, -24, 4, -27)&lt;/p&gt;&lt;p&gt;lineto(-11, -8)&lt;/p&gt;&lt;p&gt;Curveto(382, 204, 357, 206, 354, 207)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Layer_17&lt;/p&gt;&lt;p&gt;te.color(&quot;#F5F5F5&quot;, &quot;#F5F5F5&quot;)  # Eye 3&lt;/p&gt;&lt;p&gt;Moveto(253, 211)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-3, 0, -8, 8, 1, 10)&lt;/p&gt;&lt;p&gt;Smooth(258, 210, 253, 211)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(392, 209)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;lineto(4, 3)&lt;/p&gt;&lt;p&gt;vertical(4)&lt;/p&gt;&lt;p&gt;lineto(-4, 2)&lt;/p&gt;&lt;p&gt;Curveto(386, 214, 392, 209, 392, 209)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;# Layer_18&lt;/p&gt;&lt;p&gt;te.color(&quot;#352F53&quot;, &quot;#352F53&quot;)  # Eye 4&lt;/p&gt;&lt;p&gt;Moveto(219, 229)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;smooth_r(2, -5, 6, -4)&lt;/p&gt;&lt;p&gt;smooth_r(18, 13, 27, 1)&lt;/p&gt;&lt;p&gt;curveto_r(3, 0, 5, 3, 5, 3)&lt;/p&gt;&lt;p&gt;vertical(13)&lt;/p&gt;&lt;p&gt;Horizontal(224)&lt;/p&gt;&lt;p&gt;Lineto(219, 229)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(357, 227)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;smooth_r(4, -6, 10, -2)&lt;/p&gt;&lt;p&gt;smooth_r(10, 13, 19, 1)&lt;/p&gt;&lt;p&gt;curveto_r(6, 0, 8, 6, 8, 6)&lt;/p&gt;&lt;p&gt;lineto(-2, 9)&lt;/p&gt;&lt;p&gt;curveto_r(-12, 3, -29, 0, -32, -2)&lt;/p&gt;&lt;p&gt;Smooth(357, 227, 357, 227)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Layer_19&lt;/p&gt;&lt;p&gt;te.color(&quot;#9A90CB&quot;, &quot;#9A90CB&quot;)  # Eye 5&lt;/p&gt;&lt;p&gt;Moveto(227, 231)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(-6, 0, -5, 5, -3, 8)&lt;/p&gt;&lt;p&gt;smooth_r(24, 2, 27, 0)&lt;/p&gt;&lt;p&gt;smooth_r(0, -8, -1, -8)&lt;/p&gt;&lt;p&gt;Smooth(234, 231, 227, 231)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Moveto(361, 227)&lt;/p&gt;&lt;p&gt;te.begin_fill()&lt;/p&gt;&lt;p&gt;curveto_r(2, 18, 26, 14, 30, 6)&lt;/p&gt;&lt;p&gt;smooth_r(-1, -3, -2, -4)&lt;/p&gt;&lt;p&gt;smooth_r(-15, 9, -24, -4)&lt;/p&gt;&lt;p&gt;Curveto(363, 224, 361, 225, 361, 227)&lt;/p&gt;&lt;p&gt;te.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Layer_16&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)  # Eyes (lines)&lt;/p&gt;&lt;p&gt;te.pensize(3)&lt;/p&gt;&lt;p&gt;# Moveto(206,213)&lt;/p&gt;&lt;p&gt;# lineto(14,-8)&lt;/p&gt;&lt;p&gt;# curveto_r(3,-1,30,0,33,1)&lt;/p&gt;&lt;p&gt;# lineto(10,6)&lt;/p&gt;&lt;p&gt;Moveto(225, 215)&lt;/p&gt;&lt;p&gt;curveto_r(10, 28, 22, 16, 24, 6)&lt;/p&gt;&lt;p&gt;Moveto(365, 219)&lt;/p&gt;&lt;p&gt;curveto_r(4, 14, 18, 24, 22, -3)&lt;/p&gt;&lt;p&gt;te.pensize(2)&lt;/p&gt;&lt;p&gt;line(240.5, 207.5, 227.5, 211.5)&lt;/p&gt;&lt;p&gt;line(245.5, 209.5, 227.5, 214.5)&lt;/p&gt;&lt;p&gt;line(247.5, 211.5, 227.5, 217.5)&lt;/p&gt;&lt;p&gt;line(247.5, 214.5, 229.5, 220.5)&lt;/p&gt;&lt;p&gt;line(247.5, 218.5, 230.5, 223.5)&lt;/p&gt;&lt;p&gt;line(246.5, 222.5, 232.5, 226.5)&lt;/p&gt;&lt;p&gt;line(244.5, 225.5, 234.5, 228.5)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;line(377.5, 207.5, 367.5, 210.5)&lt;/p&gt;&lt;p&gt;line(384.5, 207.5, 366.5, 212.5)&lt;/p&gt;&lt;p&gt;line(385.5, 210.5, 366.5, 215.5)&lt;/p&gt;&lt;p&gt;line(384.5, 213.5, 366.5, 218.5)&lt;/p&gt;&lt;p&gt;line(384.5, 215.5, 367.5, 220.5)&lt;/p&gt;&lt;p&gt;line(384.5, 218.5, 368.5, 223.5)&lt;/p&gt;&lt;p&gt;# line(383.5,220.5,368.5,225.5)&lt;/p&gt;&lt;p&gt;line(382.5, 223.5, 370.5, 227.5)&lt;/p&gt;&lt;p&gt;# line(381.5,226.5,373.5,229.5)&lt;/p&gt;&lt;p&gt;# Layer_20&lt;/p&gt;&lt;p&gt;te.pencolor(&quot;black&quot;)&lt;/p&gt;&lt;p&gt;Moveto(309, 270)  # Nose, mouth&lt;/p&gt;&lt;p&gt;curveto_r(0, 0, 4, 7, 1, 9)&lt;/p&gt;&lt;p&gt;line(296.5, 307.5, 303.5, 307.5)&lt;/p&gt;&lt;p&gt;Moveto(315, 307)&lt;/p&gt;&lt;p&gt;smooth_r(10, -1, 10, 2)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;te.penup()&lt;/p&gt;&lt;p&gt;te.hideturtle()&lt;/p&gt;&lt;p&gt;te.update()&lt;/p&gt;&lt;p&gt;te.done()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Output&lt;/u&gt;&lt;/b&gt;:-&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh_sitti6msSghXliQVJ7mPh-IPfk0ENB6HsxrZhX3GwR9eqOUAP6v6RuiW3SROka-85e3LO-JHihsVJzXFS06xX0MTRL00kcizaM3elC0XG3yEKHx4E5JI0ReghJVGhms47_YMyIfgVRZW_EeH_LfzdPxyiX6Fx3tyqKbyo8b5NJgiLOvtRd1Zc266=s1280&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh_sitti6msSghXliQVJ7mPh-IPfk0ENB6HsxrZhX3GwR9eqOUAP6v6RuiW3SROka-85e3LO-JHihsVJzXFS06xX0MTRL00kcizaM3elC0XG3yEKHx4E5JI0ReghJVGhms47_YMyIfgVRZW_EeH_LfzdPxyiX6Fx3tyqKbyo8b5NJgiLOvtRd1Zc266=w400-h225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;NOTE:- Please help me to grow my Youtube Channel called &quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/1473518052813711028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/09/akemi-homuraanime-character-drawing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/1473518052813711028'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/1473518052813711028'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/09/akemi-homuraanime-character-drawing.html' title='Akemi Homura(Anime Character) Drawing using Python Turtle Programming | Simple Python Turtle Graphics | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEh_sitti6msSghXliQVJ7mPh-IPfk0ENB6HsxrZhX3GwR9eqOUAP6v6RuiW3SROka-85e3LO-JHihsVJzXFS06xX0MTRL00kcizaM3elC0XG3yEKHx4E5JI0ReghJVGhms47_YMyIfgVRZW_EeH_LfzdPxyiX6Fx3tyqKbyo8b5NJgiLOvtRd1Zc266=s72-w400-h225-c" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-2736022876252334548</id><published>2021-09-24T07:29:00.001-07:00</published><updated>2021-09-24T07:36:23.742-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Make a Robot using Python | Simple Python Turtle Graphics | Vast Coding</title><content type='html'>&lt;b&gt;Make a Robot using Python | Simple Python Turtle Graphics&lt;/b&gt; | &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the Source Code:-&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;import turtle as t&lt;/div&gt;&lt;div&gt;def rectangle(horizontal, vertical, color):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.pendown()&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.pensize(1)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.color(color)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.begin_fill()&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; for counter in range(1, 3):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.forward(horizontal)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.right(90)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.forward(vertical)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.right(90)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.end_fill()&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.penup()&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;t.penup()&lt;/div&gt;&lt;div&gt;t.speed(&#39;slow&#39;)&lt;/div&gt;&lt;div&gt;t.bgcolor(&#39;black&#39;)&lt;/div&gt;&lt;div&gt;# feet&lt;/div&gt;&lt;div&gt;t.goto(-100, -150)&lt;/div&gt;&lt;div&gt;rectangle(50, 20, &#39;blue&#39;)&lt;/div&gt;&lt;div&gt;t.goto(-30, -150)&lt;/div&gt;&lt;div&gt;rectangle(50, 20, &#39;blue&#39;)&lt;/div&gt;&lt;div&gt;# legs&lt;/div&gt;&lt;div&gt;t.goto(-25, -50)&lt;/div&gt;&lt;div&gt;rectangle(15, 100, &#39;yellow&#39;)&lt;/div&gt;&lt;div&gt;t.goto(-55, -50)&lt;/div&gt;&lt;div&gt;rectangle(-15, 100, &#39;yellow&#39;)&lt;/div&gt;&lt;div&gt;# body&lt;/div&gt;&lt;div&gt;t.goto(-90, 100)&lt;/div&gt;&lt;div&gt;rectangle(100, 150, &#39;red&#39;)&lt;/div&gt;&lt;div&gt;# arms&lt;/div&gt;&lt;div&gt;t.goto(-150, 70)&lt;/div&gt;&lt;div&gt;rectangle(60, 15, &#39;yellow&#39;)&lt;/div&gt;&lt;div&gt;t.goto(-150, 110)&lt;/div&gt;&lt;div&gt;rectangle(15, 40, &#39;yellow&#39;)&lt;/div&gt;&lt;div&gt;t.goto(10, 70)&lt;/div&gt;&lt;div&gt;rectangle(60, 15, &#39;yellow&#39;)&lt;/div&gt;&lt;div&gt;t.goto(55, 110)&lt;/div&gt;&lt;div&gt;rectangle(15, 40, &#39;yellow&#39;)&lt;/div&gt;&lt;div&gt;# neck&lt;/div&gt;&lt;div&gt;t.goto(-50, 120)&lt;/div&gt;&lt;div&gt;rectangle(15, 20, &#39;yellow&#39;)&lt;/div&gt;&lt;div&gt;# head&lt;/div&gt;&lt;div&gt;t.goto(-85, 170)&lt;/div&gt;&lt;div&gt;rectangle(80, 50, &#39;red&#39;)&lt;/div&gt;&lt;div&gt;# eyes&lt;/div&gt;&lt;div&gt;t.goto(-60, 160)&lt;/div&gt;&lt;div&gt;rectangle(30, 10, &#39;white&#39;)&lt;/div&gt;&lt;div&gt;t.goto(-55, 155)&lt;/div&gt;&lt;div&gt;rectangle(5, 5, &#39;black&#39;)&lt;/div&gt;&lt;div&gt;t.goto(-40, 155)&lt;/div&gt;&lt;div&gt;rectangle(5, 5, &#39;black&#39;)&lt;/div&gt;&lt;div&gt;t.done()&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Output&lt;/u&gt;&lt;/b&gt;:-&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNMHZuZelSIAAyeKUvOJp5oycS-c59qTAiz8aN1BOkS-TKixB1NQiXODWBVOo9phma6VKxt-C-mcdtn-JL1wk5LbQlM2po8EmGcxz-oxtWUnWvRskTu2mszas4dSV7EI0q1481LD6ybug/s1280/20210924_195006.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNMHZuZelSIAAyeKUvOJp5oycS-c59qTAiz8aN1BOkS-TKixB1NQiXODWBVOo9phma6VKxt-C-mcdtn-JL1wk5LbQlM2po8EmGcxz-oxtWUnWvRskTu2mszas4dSV7EI0q1481LD6ybug/w400-h225/20210924_195006.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;NOTE:- Please help me to grow my Youtube Channel called &quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/2736022876252334548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/09/make-robot-using-python-simple-python.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/2736022876252334548'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/2736022876252334548'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/09/make-robot-using-python-simple-python.html' title='Make a Robot using Python | Simple Python Turtle Graphics | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNMHZuZelSIAAyeKUvOJp5oycS-c59qTAiz8aN1BOkS-TKixB1NQiXODWBVOo9phma6VKxt-C-mcdtn-JL1wk5LbQlM2po8EmGcxz-oxtWUnWvRskTu2mszas4dSV7EI0q1481LD6ybug/s72-w400-h225-c/20210924_195006.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-8190324056636307081</id><published>2021-09-19T10:34:00.001-07:00</published><updated>2021-10-07T22:47:48.442-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Games"/><title type='text'>Snake Game | Simple Snake Game written in Python using the PyGame Library.</title><content type='html'>&lt;p&gt;Snake Game | Simple Snake Game written in Python using the PyGame Library. &lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is the Source Code:-&lt;/p&gt;&lt;p&gt;&quot;&quot;&quot;&lt;/p&gt;&lt;p&gt;Snake Eater&lt;/p&gt;&lt;p&gt;Made with PyGame&lt;/p&gt;&lt;p&gt;&quot;&quot;&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;import pygame, sys, time, random&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Difficulty settings&lt;/p&gt;&lt;p&gt;# Easy&amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp; 10&lt;/p&gt;&lt;p&gt;# Medium&amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp; 25&lt;/p&gt;&lt;p&gt;# Hard&amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp; 40&lt;/p&gt;&lt;p&gt;# Harder&amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp; 60&lt;/p&gt;&lt;p&gt;# Impossible-&amp;gt;&amp;nbsp; 120&lt;/p&gt;&lt;p&gt;difficulty = 25&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Window size&lt;/p&gt;&lt;p&gt;frame_size_x = 720&lt;/p&gt;&lt;p&gt;frame_size_y = 480&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Checks for errors encountered&lt;/p&gt;&lt;p&gt;check_errors = pygame.init()&lt;/p&gt;&lt;p&gt;# pygame.init() example output -&amp;gt; (6, 0)&lt;/p&gt;&lt;p&gt;# second number in tuple gives number of errors&lt;/p&gt;&lt;p&gt;if check_errors[1] &amp;gt; 0:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; print(f&#39;[!] Had {check_errors[1]} errors when initialising game, exiting...&#39;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; sys.exit(-1)&lt;/p&gt;&lt;p&gt;else:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; print(&#39;[+] Game successfully initialised&#39;)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Initialise game window&lt;/p&gt;&lt;p&gt;pygame.display.set_caption(&#39;Snake Eater&#39;)&lt;/p&gt;&lt;p&gt;game_window = pygame.display.set_mode((frame_size_x, frame_size_y))&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Colors (R, G, B)&lt;/p&gt;&lt;p&gt;black = pygame.Color(0, 0, 0)&lt;/p&gt;&lt;p&gt;white = pygame.Color(255, 255, 255)&lt;/p&gt;&lt;p&gt;red = pygame.Color(255, 0, 0)&lt;/p&gt;&lt;p&gt;green = pygame.Color(0, 255, 0)&lt;/p&gt;&lt;p&gt;blue = pygame.Color(0, 0, 255)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# FPS (frames per second) controller&lt;/p&gt;&lt;p&gt;fps_controller = pygame.time.Clock()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Game variables&lt;/p&gt;&lt;p&gt;snake_pos = [100, 50]&lt;/p&gt;&lt;p&gt;snake_body = [[100, 50], [100-10, 50], [100-(2*10), 50]]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;food_pos = [random.randrange(1, (frame_size_x//10)) * 10, random.randrange(1, (frame_size_y//10)) * 10]&lt;/p&gt;&lt;p&gt;food_spawn = True&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;direction = &#39;RIGHT&#39;&lt;/p&gt;&lt;p&gt;change_to = direction&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;score = 0&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Game Over&lt;/p&gt;&lt;p&gt;def game_over():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; my_font = pygame.font.SysFont(&#39;times new roman&#39;, 90)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; game_over_surface = my_font.render(&#39;YOU DIED&#39;, True, red)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; game_over_rect = game_over_surface.get_rect()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; game_over_rect.midtop = (frame_size_x/2, frame_size_y/4)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; game_window.fill(black)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; game_window.blit(game_over_surface, game_over_rect)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; show_score(0, red, &#39;times&#39;, 20)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; pygame.display.flip()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; time.sleep(3)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; pygame.quit()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; sys.exit()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Score&lt;/p&gt;&lt;p&gt;def show_score(choice, color, font, size):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; score_font = pygame.font.SysFont(font, size)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; score_surface = score_font.render(&#39;Score : &#39; + str(score), True, color)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; score_rect = score_surface.get_rect()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if choice == 1:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; score_rect.midtop = (frame_size_x/10, 15)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; else:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; score_rect.midtop = (frame_size_x/2, frame_size_y/1.25)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; game_window.blit(score_surface, score_rect)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # pygame.display.flip()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Main logic&lt;/p&gt;&lt;p&gt;while True:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for event in pygame.event.get():&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if event.type == pygame.QUIT:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pygame.quit()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys.exit()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Whenever a key is pressed down&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elif event.type == pygame.KEYDOWN:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # W -&amp;gt; Up; S -&amp;gt; Down; A -&amp;gt; Left; D -&amp;gt; Right&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if event.key == pygame.K_UP or event.key == ord(&#39;w&#39;):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change_to = &#39;UP&#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if event.key == pygame.K_DOWN or event.key == ord(&#39;s&#39;):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change_to = &#39;DOWN&#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if event.key == pygame.K_LEFT or event.key == ord(&#39;a&#39;):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change_to = &#39;LEFT&#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if event.key == pygame.K_RIGHT or event.key == ord(&#39;d&#39;):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; change_to = &#39;RIGHT&#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Esc -&amp;gt; Create event to quit the game&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if event.key == pygame.K_ESCAPE:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pygame.event.post(pygame.event.Event(pygame.QUIT))&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Making sure the snake cannot move in the opposite direction instantaneously&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if change_to == &#39;UP&#39; and direction != &#39;DOWN&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; direction = &#39;UP&#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if change_to == &#39;DOWN&#39; and direction != &#39;UP&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; direction = &#39;DOWN&#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if change_to == &#39;LEFT&#39; and direction != &#39;RIGHT&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; direction = &#39;LEFT&#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if change_to == &#39;RIGHT&#39; and direction != &#39;LEFT&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; direction = &#39;RIGHT&#39;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Moving the snake&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if direction == &#39;UP&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snake_pos[1] -= 10&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if direction == &#39;DOWN&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snake_pos[1] += 10&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if direction == &#39;LEFT&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snake_pos[0] -= 10&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if direction == &#39;RIGHT&#39;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snake_pos[0] += 10&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Snake body growing mechanism&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; snake_body.insert(0, list(snake_pos))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if snake_pos[0] == food_pos[0] and snake_pos[1] == food_pos[1]:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; score += 1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; food_spawn = False&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; else:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snake_body.pop()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Spawning food on the screen&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if not food_spawn:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; food_pos = [random.randrange(1, (frame_size_x//10)) * 10, random.randrange(1, (frame_size_y//10)) * 10]&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; food_spawn = True&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # GFX&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; game_window.fill(black)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for pos in snake_body:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Snake body&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # .draw.rect(play_surface, color, xy-coordinate)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # xy-coordinate -&amp;gt; .Rect(x, y, size_x, size_y)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pygame.draw.rect(game_window, green, pygame.Rect(pos[0], pos[1], 10, 10))&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Snake food&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; pygame.draw.rect(game_window, white, pygame.Rect(food_pos[0], food_pos[1], 10, 10))&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Game Over conditions&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Getting out of bounds&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if snake_pos[0] &amp;lt; 0 or snake_pos[0] &amp;gt; frame_size_x-10:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; game_over()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if snake_pos[1] &amp;lt; 0 or snake_pos[1] &amp;gt; frame_size_y-10:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; game_over()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Touching the snake body&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for block in snake_body[1:]:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if snake_pos[0] == block[0] and snake_pos[1] == block[1]:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; game_over()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; show_score(1, white, &#39;consolas&#39;, 20)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Refresh game screen&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; pygame.display.update()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; # Refresh rate&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; fps_controller.tick(difficulty)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Output:-&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguPib1eilIx_8if3ZELHdN34JqTGA11Oe8xYyvIaJN56Hen-2qSEO6HK3UVqoDMCWLOP1jiQaVaJfIs3dTY0MavuFDh9ptHnO3o4EtCphRPgBeMqHPV395UcyLu1x7Pt1LSR0nKBTOemo/s1280/20210919_225806.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguPib1eilIx_8if3ZELHdN34JqTGA11Oe8xYyvIaJN56Hen-2qSEO6HK3UVqoDMCWLOP1jiQaVaJfIs3dTY0MavuFDh9ptHnO3o4EtCphRPgBeMqHPV395UcyLu1x7Pt1LSR0nKBTOemo/w400-h225/20210919_225806.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;&lt;br /&gt;NOTE:- Please help me to grow my Youtube Channel called &quot;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&quot;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/8190324056636307081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/09/snake-game-simple-snake-game-written-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/8190324056636307081'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/8190324056636307081'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/09/snake-game-simple-snake-game-written-in.html' title='Snake Game | Simple Snake Game written in Python using the PyGame Library.'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguPib1eilIx_8if3ZELHdN34JqTGA11Oe8xYyvIaJN56Hen-2qSEO6HK3UVqoDMCWLOP1jiQaVaJfIs3dTY0MavuFDh9ptHnO3o4EtCphRPgBeMqHPV395UcyLu1x7Pt1LSR0nKBTOemo/s72-w400-h225-c/20210919_225806.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-4038397044976955972</id><published>2021-09-17T04:05:00.000-07:00</published><updated>2021-09-17T04:05:05.808-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Wish Good Night using Python | Python Turtle | Simple Python Project</title><content type='html'>&lt;p&gt;Wish Good Night using Python|Python Turtle|Simple Python Project|&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;Here is the Source Code&lt;/u&gt;:-&amp;nbsp;&lt;/p&gt;&lt;p&gt;import turtle&lt;/p&gt;&lt;p&gt;import random&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# window setup&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;win = turtle.Screen()&lt;/p&gt;&lt;p&gt;win.setup(width=800,height=600)&lt;/p&gt;&lt;p&gt;win.bgcolor(&#39;black&#39;)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;colors = [&#39;red&#39;,&#39;blue&#39;,&#39;orange&#39;,&#39;yellow&#39;,&#39;magenta&#39;,&#39;purple&#39;,&#39;peru&#39;,&#39;ivory&#39;,&#39;dark orange&#39;]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Turtle objects&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;moon = turtle.Turtle()&lt;/p&gt;&lt;p&gt;moon.hideturtle()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;star = turtle.Turtle()&lt;/p&gt;&lt;p&gt;star.speed(0)&lt;/p&gt;&lt;p&gt;star.hideturtle()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;text = turtle.Turtle()&lt;/p&gt;&lt;p&gt;text.speed(6)&lt;/p&gt;&lt;p&gt;text.hideturtle()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Functions&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def draw_moon(pos,color):&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;x,y = pos&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;moon.color(color)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;moon.begin_fill()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;moon.penup()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;moon.goto(x,y)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;moon.pendown()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;moon.circle(50)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;moon.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def stars(x,y,color,length):&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;star.color(color)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;star.penup()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;star.goto(x,y)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;star.pendown()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;star.begin_fill()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for i in range(5):&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;star.forward(length)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;star.right(144)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;star.forward(length)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;star.end_fill()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def random_pos():&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return random.randint(-390,390), random.randint(-200,290)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def random_length():&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return random.randint(5,25)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;def write_text(color):&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;text.color(color)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;text.penup()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;text.goto(-180,-270)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;text.pendown()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;style = (&#39;Stencil Std Bold&#39;,20,&#39;normal&#39;)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;text.write(&#39;Good Night&#39;,font=style,move=True)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Main program&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;draw_moon((-300,170),&#39;white&#39;)&lt;/p&gt;&lt;p&gt;draw_moon((-278,183),&#39;black&#39;)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;while True:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;color = random.choice(colors)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;x ,y = random_pos()&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;length = random_length()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;stars(x,y,color,length)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;write_text(color)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;# moon.clear()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;turtle.done()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Output:-&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQCzBSP_12eigHHz3D3E0uzDCStGrwBjOEvR_rOZRBoolv5U36ZogetGZVRa_PoeclQYkYTdgdViS-DnM6iJEayXEpGakL9gjIja8nqn-dbbJw7KRpEC2c8FomjDkpilNqGWmCUmuRjSU/s1280/20210917_162210.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQCzBSP_12eigHHz3D3E0uzDCStGrwBjOEvR_rOZRBoolv5U36ZogetGZVRa_PoeclQYkYTdgdViS-DnM6iJEayXEpGakL9gjIja8nqn-dbbJw7KRpEC2c8FomjDkpilNqGWmCUmuRjSU/w400-h225/20210917_162210.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: white; font-family: verdana; font-size: large;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;NOTE:- Please help me to grow my Youtube Channel called &quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://youtube.com/channel/UCvD5vcbsjWNv5iv1EGFNBjA&quot;&gt;Vast Coding&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;br /&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/4038397044976955972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/09/wish-good-night-using-python-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/4038397044976955972'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/4038397044976955972'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/09/wish-good-night-using-python-python.html' title='Wish Good Night using Python | Python Turtle | Simple Python Project'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQCzBSP_12eigHHz3D3E0uzDCStGrwBjOEvR_rOZRBoolv5U36ZogetGZVRa_PoeclQYkYTdgdViS-DnM6iJEayXEpGakL9gjIja8nqn-dbbJw7KRpEC2c8FomjDkpilNqGWmCUmuRjSU/s72-w400-h225-c/20210917_162210.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-498422957343346418</id><published>2021-09-13T11:27:00.002-07:00</published><updated>2021-10-03T05:39:42.868-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>3D Design using Python Turtle Graphics | Simple Python Project | Python Turtle</title><content type='html'>Beautiful design using Python Turtle Graphics | Simple Python Project | Python Turtle | &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Vast Coding&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Here is the Source Code:-&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;import turtle as t&lt;/div&gt;&lt;div&gt;t.speed(0)&lt;/div&gt;&lt;div&gt;t.bgcolor(&#39;black&#39;)&lt;/div&gt;&lt;div&gt;t.pencolor(&#39;purple&#39;)&lt;/div&gt;&lt;div&gt;for i in range(220):&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;t.rt(i)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;t.circle(120,i)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;t.fd(i)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;t.rt(90)&lt;/div&gt;&lt;div&gt;t.done()&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;OUTPUT:-&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyfJh0qSKPrWBDUFygwETALbHSSsYsph_ZMMXobXJDL7ku-BcA0VU2sN8SNjWJ0UDvgKNw3c2R72BfO4LwA5llNWIwFDzB2r04fbqv7qnDMMwEc2s40I7E856OKNAT9d3923MRSLoBbE8/s1280/20210913_235348.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyfJh0qSKPrWBDUFygwETALbHSSsYsph_ZMMXobXJDL7ku-BcA0VU2sN8SNjWJ0UDvgKNw3c2R72BfO4LwA5llNWIwFDzB2r04fbqv7qnDMMwEc2s40I7E856OKNAT9d3923MRSLoBbE8/w400-h225/20210913_235348.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;OUTPUT&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;b style=&quot;background-color: white; font-family: verdana; font-size: large;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;NOTE:- Please help me to grow my Youtube Channel called &quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Vast Coding&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/498422957343346418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/09/3d-design-using-python-turtle-graphics.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/498422957343346418'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/498422957343346418'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/09/3d-design-using-python-turtle-graphics.html' title='3D Design using Python Turtle Graphics | Simple Python Project | Python Turtle'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyfJh0qSKPrWBDUFygwETALbHSSsYsph_ZMMXobXJDL7ku-BcA0VU2sN8SNjWJ0UDvgKNw3c2R72BfO4LwA5llNWIwFDzB2r04fbqv7qnDMMwEc2s40I7E856OKNAT9d3923MRSLoBbE8/s72-w400-h225-c/20210913_235348.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-3448735454469214136</id><published>2021-09-13T08:19:00.012-07:00</published><updated>2021-09-13T08:51:48.347-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>How to Propose Someone using Python | Make Red Rose using Python Turtle Graphics | Vast Coding</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: verdana; font-size: large;&quot;&gt;How to Propose Someone using Python 😂 | Make &lt;span style=&quot;color: red;&quot;&gt;Red Rose&lt;/span&gt; using Python Turtle Graphics |&lt;b&gt; &lt;span style=&quot;color: red;&quot;&gt;Vast Coding&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;u&gt;Python Code To Draw Red Rose&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;u&gt;&lt;i&gt;&lt;b&gt;SOURCE CODE:-&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;import turtle&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# Set initial position&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.penup ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (200)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.pendown ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# flower base&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fillcolor (&quot;red&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.begin_fill ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (10,180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (25,110)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (50)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (60,45)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (20,170)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (24)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (30,110)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (90,70)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (30,150)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (80,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (45)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (165)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (155)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (150,80)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (50)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (150,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.end_fill ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# Petal 1&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (150)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (-90,70)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (75,105)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.setheading (60)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (80,98)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (-90,40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# Petal 2&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (90,40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (-80,98)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.setheading (-83)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# Leaves 1&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (25)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (45)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fillcolor (&quot;green&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.begin_fill ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (-80,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (-80,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.end_fill ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (135)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (60)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (85)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (80)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# Leaves 2&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (45)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fillcolor (&quot;green&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.begin_fill ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (80,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (80,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.end_fill ()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (135)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (60)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.left (180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.fd (60)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.right (90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.circle (200,60)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.color(&#39;red&#39;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;style = (&#39;Arial&#39;, 10, &#39;bold&#39;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.write(&#39;I love you!&#39;, font=style, align=&#39;left&#39;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;turtle.done()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;u&gt;OUTPUT:-&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib9IzjVwVS-RHPM1YqG_j5-pxuj_GNz_e4ETaBfeQ1lTyWHW6QtEDIlfONFjPZPslRqiyCkjiPzwCMcg5XnymDLCrbNkFU-jnELEJ0QfRbPqeb3hoF5V9lYbpFMhJCf8O7qzivAinqyBM/s1280/20210913_211712.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib9IzjVwVS-RHPM1YqG_j5-pxuj_GNz_e4ETaBfeQ1lTyWHW6QtEDIlfONFjPZPslRqiyCkjiPzwCMcg5XnymDLCrbNkFU-jnELEJ0QfRbPqeb3hoF5V9lYbpFMhJCf8O7qzivAinqyBM/w400-h225/20210913_211712.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;OUTPUT&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;b style=&quot;background-color: white; font-family: verdana; font-size: large;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;NOTE:- Please help me to grow my Youtube Channel called &quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Vast Coding&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/3448735454469214136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/09/how-to-propose-someone-using-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/3448735454469214136'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/3448735454469214136'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/09/how-to-propose-someone-using-python.html' title='How to Propose Someone using Python | Make Red Rose using Python Turtle Graphics | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib9IzjVwVS-RHPM1YqG_j5-pxuj_GNz_e4ETaBfeQ1lTyWHW6QtEDIlfONFjPZPslRqiyCkjiPzwCMcg5XnymDLCrbNkFU-jnELEJ0QfRbPqeb3hoF5V9lYbpFMhJCf8O7qzivAinqyBM/s72-w400-h225-c/20210913_211712.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6130979069812369413.post-5117755490490150612</id><published>2021-09-13T06:46:00.008-07:00</published><updated>2021-10-05T00:46:16.657-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python Turtle"/><title type='text'>Peppa Pig Cartoon Drawing using Turtle Grpahics in Python | Simple Python Project | Vast Coding</title><content type='html'>&lt;span style=&quot;font-family: verdana; font-size: large;&quot;&gt;Peppa Pig Cartoon Drawing using &lt;span&gt;Turtle Grpahics&lt;/span&gt; in &lt;span&gt;Python &lt;/span&gt;| Simple Python Project | &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Vast Coding&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana; font-size: large;&quot;&gt;(Also &lt;span style=&quot;color: red;&quot;&gt;Subscribe&lt;/span&gt; My Youtube Channel :- &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Vast Coding&lt;/b&gt;&lt;/span&gt;)&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;u&gt;SOURCE CODE:-&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;import turtle as t&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pensize(4)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.hideturtle()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.colormode(255)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192),&quot;pink&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.setup(840,500)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.speed(10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.goto(-100,100)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;a=0.4&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;for i in range(120):&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; if 0&amp;lt;=i&amp;lt;30 or 60&amp;lt;=i&amp;lt;90:&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=a+0.08&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;t.lt(3)&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.fd(a)&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; else:&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=a-0.08&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;t.lt(3)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.fd(a)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(25)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pencolor(255,155,192)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(5)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(160,82,45)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pencolor(255,155,192)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(5)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(160,82,45)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192),&quot;pink&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(41)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(300,-30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(100,-60)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(80,-100)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(150,-20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(60,-95)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(161)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-300,15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.goto(-100,100)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;a=0.4&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;for i in range(60):&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; if 0&amp;lt;=i&amp;lt;30 or 60&amp;lt;=i&amp;lt;90:&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=a+0.08&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;t.lt(3)&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.fd(a)&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; else:&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=a-0.08&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;t.lt(3)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.fd(a)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192),&quot;pink&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-7)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(70)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(100)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-50,50)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-10,120)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-50,54)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-12)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(100)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-50,50)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-10,120)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-50,56)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192),&quot;white&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-95)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(&quot;black&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(12)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-3)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(3)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192),&quot;white&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-25)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(&quot;black&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(12)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-3)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(3)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192))&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-95)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(65)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(239,69,19)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-100)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-80)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(30,40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(40,80)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(&quot;red&quot;,(255,99,71))&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-78)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.begin_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-130)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(100,10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(300,30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(230)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(300,30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(100,3)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192),(255,&lt;wbr&gt;&lt;/wbr&gt;100,100))&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-135)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-80,63)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-150,24)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.end_fill()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192))&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-27)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-160)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(300,15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-20,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(237)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(-300,15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-170)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(20,90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pensize(10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((240,128,128))&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-75)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(-180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(&quot;black&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pensize(15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pensize(10)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((240,128,128))&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(40)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(-180)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color(&quot;black&quot;)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pensize(15)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pensize(4)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.color((255,155,192))&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pu()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(90)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(70)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.fd(95)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.pd()&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.seth(0)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(70,20)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(10,330)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.circle(70,30)&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;t.done()&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;OUTPUT&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;:-&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div dir=&quot;auto&quot; style=&quot;background-color: white; color: #222222;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglihqmYKhSC55sacqugW0X8geyUgaCgcQo4i8qjU2mpcf-gKPmKP1uVr3OZQQ6SldRMPDnrJPL2wOHeS-kmCJh6egy3r2fhMgin22yxLROkWdKmbt4u3zDIUy1Efikh9gcOrNq6KjCmTg/s1280/20210913_211641.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglihqmYKhSC55sacqugW0X8geyUgaCgcQo4i8qjU2mpcf-gKPmKP1uVr3OZQQ6SldRMPDnrJPL2wOHeS-kmCJh6egy3r2fhMgin22yxLROkWdKmbt4u3zDIUy1Efikh9gcOrNq6KjCmTg/w400-h225/20210913_211641.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;OUTPUT&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://vastcoding.blogspot.com/feeds/5117755490490150612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://vastcoding.blogspot.com/2021/09/peppa-pig-cartoon-drawing-using-turtle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/5117755490490150612'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6130979069812369413/posts/default/5117755490490150612'/><link rel='alternate' type='text/html' href='https://vastcoding.blogspot.com/2021/09/peppa-pig-cartoon-drawing-using-turtle.html' title='Peppa Pig Cartoon Drawing using Turtle Grpahics in Python | Simple Python Project | Vast Coding'/><author><name>Vast Coding</name><uri>http://www.blogger.com/profile/18202714443027269956</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheW7oY7Nm61XrHHL0RSWwMKLeo5nrSoCxZBLl31NOcz-GxCX6s2cS8wFCNIA1DCMjymtnFcGqtn2JO9Z6N_DxCZZAQojjTZO8RSEpFXINvjHqkztwGDtuQ2zdWEnc_Hg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglihqmYKhSC55sacqugW0X8geyUgaCgcQo4i8qjU2mpcf-gKPmKP1uVr3OZQQ6SldRMPDnrJPL2wOHeS-kmCJh6egy3r2fhMgin22yxLROkWdKmbt4u3zDIUy1Efikh9gcOrNq6KjCmTg/s72-w400-h225-c/20210913_211641.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>