{"id":3959,"date":"2020-12-11T19:08:02","date_gmt":"2020-12-11T13:38:02","guid":{"rendered":"https:\/\/copyassignment.com\/?p=3959"},"modified":"2022-11-30T12:37:30","modified_gmt":"2022-11-30T07:07:30","slug":"python-turtle-beautiful-design","status":"publish","type":"post","link":"https:\/\/copyassignment.com\/python-turtle-beautiful-design\/","title":{"rendered":"Python Turtle Beautiful Design"},"content":{"rendered":"\n<p>            Today, we will see one Python Turtle Beautiful Design which will be something like it will start drawing from the middle of the screen and will go towards the boundary of the screen using different colors. Python Turtle module is best for drawing and if we want our Kids to learn Programming with Python, then also Python Turtle is best as it is actually fun for kids as using Python Turtle anyone can create beautiful designs.<\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-9886351916045880\" data-ad-slot=\"2002566052\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Source Code<\/h2>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><div style=\"position:absolute;top:-20px;right:0px;cursor:pointer\" class=\"copy-simple-code-block\"><span class=\"dashicon dashicons dashicons-admin-page\"><\/span><\/div><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"python\" data-theme=\"xcode\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"true\">import turtle\nturtle.setup(width=600, height=500)\nturtle.reset()\nturtle.hideturtle()\nturtle.speed(0)\n\nturtle.bgcolor('black')\n\nc = 0\nx = 0\n\ncolors = [\n#reddish colors\n(1.00, 0.00, 0.00),(1.00, 0.03, 0.00),(1.00, 0.05, 0.00),(1.00, 0.07, 0.00),(1.00, 0.10, 0.00),(1.00, 0.12, 0.00),(1.00, 0.15, 0.00),(1.00, 0.17, 0.00),(1.00, 0.20, 0.00),(1.00, 0.23, 0.00),(1.00, 0.25, 0.00),(1.00, 0.28, 0.00),(1.00, 0.30, 0.00),(1.00, 0.33, 0.00),(1.00, 0.35, 0.00),(1.00, 0.38, 0.00),(1.00, 0.40, 0.00),(1.00, 0.42, 0.00),(1.00, 0.45, 0.00),(1.00, 0.47, 0.00),\n#orangey colors\n(1.00, 0.50, 0.00),(1.00, 0.53, 0.00),(1.00, 0.55, 0.00),(1.00, 0.57, 0.00),(1.00, 0.60, 0.00),(1.00, 0.62, 0.00),(1.00, 0.65, 0.00),(1.00, 0.68, 0.00),(1.00, 0.70, 0.00),(1.00, 0.72, 0.00),(1.00, 0.75, 0.00),(1.00, 0.78, 0.00),(1.00, 0.80, 0.00),(1.00, 0.82, 0.00),(1.00, 0.85, 0.00),(1.00, 0.88, 0.00),(1.00, 0.90, 0.00),(1.00, 0.93, 0.00),(1.00, 0.95, 0.00),(1.00, 0.97, 0.00),\n#yellowy colors\n(1.00, 1.00, 0.00),(0.95, 1.00, 0.00),(0.90, 1.00, 0.00),(0.85, 1.00, 0.00),(0.80, 1.00, 0.00),(0.75, 1.00, 0.00),(0.70, 1.00, 0.00),(0.65, 1.00, 0.00),(0.60, 1.00, 0.00),(0.55, 1.00, 0.00),(0.50, 1.00, 0.00),(0.45, 1.00, 0.00),(0.40, 1.00, 0.00),(0.35, 1.00, 0.00),(0.30, 1.00, 0.00),(0.25, 1.00, 0.00),(0.20, 1.00, 0.00),(0.15, 1.00, 0.00),(0.10, 1.00, 0.00),(0.05, 1.00, 0.00),\n#greenish colors\n(0.00, 1.00, 0.00),(0.00, 0.95, 0.05),(0.00, 0.90, 0.10),(0.00, 0.85, 0.15),(0.00, 0.80, 0.20),(0.00, 0.75, 0.25),(0.00, 0.70, 0.30),(0.00, 0.65, 0.35),(0.00, 0.60, 0.40),(0.00, 0.55, 0.45),(0.00, 0.50, 0.50),(0.00, 0.45, 0.55),(0.00, 0.40, 0.60),(0.00, 0.35, 0.65),(0.00, 0.30, 0.70),(0.00, 0.25, 0.75),(0.00, 0.20, 0.80),(0.00, 0.15, 0.85),(0.00, 0.10, 0.90),(0.00, 0.05, 0.95),\n#blueish colors\n(0.00, 0.00, 1.00),(0.05, 0.00, 1.00),(0.10, 0.00, 1.00),(0.15, 0.00, 1.00),(0.20, 0.00, 1.00),(0.25, 0.00, 1.00),(0.30, 0.00, 1.00),(0.35, 0.00, 1.00),(0.40, 0.00, 1.00),(0.45, 0.00, 1.00),(0.50, 0.00, 1.00),(0.55, 0.00, 1.00),(0.60, 0.00, 1.00),(0.65, 0.00, 1.00),(0.70, 0.00, 1.00),(0.75, 0.00, 1.00),(0.80, 0.00, 1.00),(0.85, 0.00, 1.00),(0.90, 0.00, 1.00),(0.95, 0.00, 1.00)\n]\n\nwhile x &lt; 1000:\n    idx = int(c)\n    color = colors[idx]\n    turtle.color(color)\n    turtle.forward(x)\n    turtle.right(98)\n    x = x + 1\n    c = c + 0.1\n\nturtle.exitonclick()<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Output:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"550\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250-1024x550.jpg\" alt=\"output\" class=\"wp-image-21787 lazyload\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250-1024x550.jpg 1024w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250-300x161.jpg 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250-768x413.jpg 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250-1536x825.jpg 1536w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250-1026x551.jpg 1026w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250-675x363.jpg 675w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-30-123250.jpg 1913w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/550;\" \/><\/figure>\n\n\n\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9886351916045880\"\n     crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"autorelaxed\"\n     data-ad-client=\"ca-pub-9886351916045880\"\n     data-ad-slot=\"7933252109\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<p>This may not look that much beautiful here, but believe me, it will surprise you if you run this in your system, I recommend you must run this program.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>Also read:<\/p>\n\n\n\n<p><a href=\"https:\/\/copyassignment.com\/snake-game-in-python-using-pygame\/\">Snake Game in Python using Pygame<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/copyassignment.com\/get-jokes-with-python\/\">Get Jokes with Python<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/copyassignment.com\/rock-paper-scissor-game-using-python-tkinter\/\">Rock Paper Scissor Game Using Python Tkinter<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/copyassignment.com\/guess-the-number-python\/\">Guess the Number Python<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/copyassignment.com\/automate-facebook-login-using-python-selenium\/\">Automate Facebook Login Using Python Selenium<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/copyassignment.com\/jarvis-and-google-assistant-voice-assistant-using-python\/\">Jarvis and Google Assistant || Voice Assistant Using Python<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/copyassignment.com\/shutdown-computer-with-voice-python\/\">Shutdown Computer with Voice in Python<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we will see one Python Turtle Beautiful Design which will be something like it will start drawing from the middle of the screen and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":12829,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,1067],"tags":[1080,1676,1678,1677,1384],"class_list":["post-3959","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allcategorites","category-python-turtle","tag-python-turtle","tag-python-turtle-beautiful-design","tag-python-turtle-designs","tag-python-turtle-projects","tag-turtle","wpcat-22-id","wpcat-1067-id"],"_links":{"self":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts\/3959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/comments?post=3959"}],"version-history":[{"count":0,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts\/3959\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/media\/12829"}],"wp:attachment":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/media?parent=3959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/categories?post=3959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/tags?post=3959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}