<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>tree &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/tree/feed/" rel="self" type="application/rss+xml" />
	<link>https://en.anonyviet.com</link>
	<description>The most popular website for sharing information technology, computer networks, and security knowledge. Stay up to date with the hottest news and tips</description>
	<lastBuildDate>Thu, 26 Jan 2023 02:21:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>tree &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Instructions to decorate the Desktop with a Christmas tree in the corner of the screen</title>
		<link>https://en.anonyviet.com/instructions-to-decorate-the-desktop-with-a-christmas-tree-in-the-corner-of-the-screen/</link>
					<comments>https://en.anonyviet.com/instructions-to-decorate-the-desktop-with-a-christmas-tree-in-the-corner-of-the-screen/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Thu, 26 Jan 2023 02:21:14 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Christmas]]></category>
		<category><![CDATA[corner]]></category>
		<category><![CDATA[decorate]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[tree]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=3566</guid>

					<description><![CDATA[Another Christmas season is coming, if you are looking to decorate your computer to welcome Christmas, you cannot ignore the Christmas tree. With “get-xmas” you will create a Christmas tree with twinkling lights in the corner of the screen. Especially being able to drag the pine tree everywhere on the Desktop. Not only beautiful decoration, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div>
<p><strong>Another Christmas season is coming, if you are looking to decorate your computer to welcome Christmas, you cannot ignore the Christmas tree.  With “get-xmas” you will create a Christmas tree with twinkling lights in the corner of the screen.  Especially being able to drag the pine tree everywhere on the Desktop.  Not only beautiful decoration, but you also reduce stress when looking at the screen.  In addition, you can decorate the Taskbar with the colors of Christmas and falling snow.</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2021%2F12%2Ftrang-tri-Desktop-giang-sinh-1.jpg" rel="noopener" class="local-link"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-37739" src="https://anonyviet.com/wp-content/uploads/2021/12/trang-tri-Desktop-giang-sinh-1.jpg" alt="Christmas Desktop Page" width="689" height="389" srcset="https://anonyviet.com/wp-content/uploads/2021/12/trang-tri-Desktop-giang-sinh-1.jpg 689w, https://anonyviet.com/wp-content/uploads/2021/12/trang-tri-Desktop-giang-sinh-1-300x169.jpg 300w" sizes="(max-width: 689px) 100vw, 689px" title="Instructions to decorate the Desktop with a Christmas tree in the corner of the screen 8"/></a></p>
<h2>Decorate your Desktop PC with a Christmas tree</h2>
<p>Here&#8217;s a simple way to welcome Christmas into your desktop;  Lots of free colorful sparkling Christmas trees and Christmassy snowballs for you to choose from.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2021%2F12%2Fcay-thong-noel-desktop.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-37737" src="https://anonyviet.com/wp-content/uploads/2021/12/cay-thong-noel-desktop.jpg" alt="Christmas desktop" width="349" height="430" srcset="https://anonyviet.com/wp-content/uploads/2021/12/cay-thong-noel-desktop.jpg 349w, https://anonyviet.com/wp-content/uploads/2021/12/cay-thong-noel-desktop-243x300.jpg 243w" sizes="auto, (max-width: 349px) 100vw, 349px" title="Instructions to decorate the Desktop with a Christmas tree in the corner of the screen 9"/></a></p>
<p>You can download as many as you want.  Each tree or sphere is about 3x 2 and they show up on top of the Ontop on Windows.  There are more than 40 Christmas tree templates for you to decorate your Desktop.  Especially you can move the pine tree and no need to install.  Just click the pine tree to appear, if you don&#8217;t use it, turn it off.  So convenient and light!</p>
<p>Just download the zip file, extract and open the file to run.  Position the tree or globe around your desktop with drag and drop, access the options menu simply by right clicking:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2021%2F12%2Ftrang-tri-cay-thong-noel-tren-desktop.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-37736" src="https://anonyviet.com/wp-content/uploads/2021/12/trang-tri-cay-thong-noel-tren-desktop.jpg" alt="Christmas decoration on desktop" width="367" height="466" srcset="https://anonyviet.com/wp-content/uploads/2021/12/trang-tri-cay-thong-noel-tren-desktop.jpg 367w, https://anonyviet.com/wp-content/uploads/2021/12/trang-tri-cay-thong-noel-tren-desktop-236x300.jpg 236w" sizes="auto, (max-width: 367px) 100vw, 367px" title="Instructions to decorate the Desktop with a Christmas tree in the corner of the screen 10"/></a></p>
<p style="text-align: center;"><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fwww.get-xmas.com%2Fchristmastaskbar.html" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Download Christmas Taskbar Decoration</a></strong></p>
<p style="text-align: center;"><a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fget-xmas.com%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';"><strong>Download Christmas Tree on Desktop</strong></a></p>
<p>Worried that running the exe file will be accompanied by a &#8220;baby&#8221; promotion, I have scanned through anti-virus software and there is no malicious code.  You can rescan on <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fcach-kiem-tra-virus-cua-file-truoc-khi-download-voi-virustotal%2F" rel="noopener" class="local-link">Virustotal</a> to see if it&#8217;s safe.  Wishing you a peaceful and happy Christmas with a beautiful Desktop</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;37735&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;101&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (101 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (101 votes)    </p>
</p></div>
<p><!-- AI CONTENT END 2 --></p></div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/instructions-to-decorate-the-desktop-with-a-christmas-tree-in-the-corner-of-the-screen/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2021/12/trang-tri-Desktop-giang-sinh.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>What is the national tree of India?</title>
		<link>https://en.anonyviet.com/what-is-the-national-tree-of-india/</link>
					<comments>https://en.anonyviet.com/what-is-the-national-tree-of-india/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 06 Jan 2023 14:21:50 +0000</pubDate>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[india]]></category>
		<category><![CDATA[tree]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=615</guid>

					<description><![CDATA[The national tree of India The national tree of India is the banyan tree (Ficus benghalensis). It is a type of fig tree and is native to the Indian subcontinent. The banyan tree is known for its vast canopy and its aerial roots, which give the tree its characteristic appearance. These aerial roots grow downward [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>The national tree of India</h2>
<p>The national tree of India is the banyan tree (Ficus benghalensis). It is a type of fig tree and is native to the Indian subcontinent. The banyan tree is known for its vast canopy and its aerial roots, which give the tree its characteristic appearance. These aerial roots grow downward from the branches and eventually take root in the ground, giving the tree a unique structure that has earned it the nickname &#8220;the tree of life.&#8221;</p>
<p><img decoding="async" class="size-full wp-image-616 aligncenter" src="https://en.anonyviet.com/wp-content/uploads/2023/01/The-national-tree-of-India-is-the-banyan-tree.jpg" alt="The national tree of India is the banyan tree" width="628" height="381" /></p>
<p>The banyan tree has a long and storied history in India. It is considered sacred in Hinduism and has played a significant role in Indian culture for centuries. The tree is often associated with the god Shiva and is said to provide shelter and support to all living beings. In Hindu mythology, the banyan tree is said to be the home of the gods and the place where they gather to discuss the affairs of the world.</p>
<p>In addition to its cultural significance, the banyan tree is also an important part of the ecosystem in India. It provides food and shelter for a variety of animals, including monkeys, birds, and insects. It is also an important source of shade and shelter for humans, especially in hot, dry regions of the country.</p>
<p>Despite its importance, the banyan tree is facing numerous threats. Urbanization and deforestation have led to the loss of many banyan trees, and the tree is now considered endangered in some parts of India. In an effort to protect the national tree, the government of India has established a number of banyan tree reserves and has implemented laws to prevent the destruction of these trees.</p>
<p>In conclusion, the banyan tree is the national tree of India and holds great cultural and ecological significance in the country. It is known for its vast canopy and aerial roots, and has played a significant role in Indian culture and the ecosystem for centuries. However, the tree is facing numerous threats, including urbanization and deforestation, and efforts are being made to protect it.</p>
<h2>What is banyan tree</h2>
<p>The banyan tree is a type of fig tree and is native to the Indian subcontinent. It is known for its vast canopy, which can reach up to 100 feet in diameter, and its aerial roots, which grow downward from the branches and take root in the ground. These aerial roots give the tree its unique structure and earn it the nickname &#8220;the tree of life.&#8221;</p>
<p>The banyan tree is considered sacred in Hinduism and has a long history in Indian culture. It is often associated with the god Shiva and is believed to provide shelter and support to all living beings. In Hindu mythology, the banyan tree is said to be the home of the gods and the place where they gather to discuss the affairs of the world.</p>
<p>In addition to its cultural significance, the banyan tree is also an important part of the ecosystem in India. It provides food and shelter for a variety of animals, including monkeys, birds, and insects. It is also an important source of shade and shelter for humans, especially in hot, dry regions of the country.</p>
<p>Despite its importance, the banyan tree is facing numerous threats. Urbanization and deforestation have led to the loss of many banyan trees, and the tree is now considered endangered in some parts of India. In an effort to protect the national tree, the government of India has established a number of banyan tree reserves and has implemented laws to prevent the destruction of these trees.</p>
<p>There are several ways in which people can help to protect the banyan tree and other endangered species in India. One way is to support organizations that are working to conserve these species and their habitats. Another way is to plant and care for banyan trees in your own community. This can help to preserve the tree&#8217;s natural habitat and provide a home for the animals that rely on it for survival.</p>
<p>In conclusion, the banyan tree is the national tree of India and holds great cultural and ecological significance in the country. It is facing numerous threats, including urbanization and deforestation, and efforts are being made to protect it. By supporting conservation organizations and planting and caring for banyan trees, individuals can help to ensure the survival of this important species.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/what-is-the-national-tree-of-india/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Code Christmas tree in Python &#8211; Merry Christmas Python</title>
		<link>https://en.anonyviet.com/code-christmas-tree-in-python-merry-christmas-python/</link>
					<comments>https://en.anonyviet.com/code-christmas-tree-in-python-merry-christmas-python/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Sun, 01 Jan 2023 14:55:34 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Christmas]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Merry]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[tree]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=229</guid>

					<description><![CDATA[A Merry Christmas is coming, as a Coder you can design your own Noel in Python to increase your friends or relatives. If you don&#8217;t have time, you can use the Codes collected below. Each Code Python Noel has its own design but all have the common feature of having a Christmas tree with falling [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p><strong>A Merry Christmas is coming, as a Coder you can design your own Noel in Python to increase your friends or relatives.  If you don&#8217;t have time, you can use the Codes collected below.  Each Code Python Noel has its own design but all have the common feature of having a Christmas tree with falling snow.</strong></p>
<p>The Christmas tree code in Python will use the Turtle library to draw, so you need to import Turtle.</p>
<p>If you still don&#8217;t know how to use Python, read on <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2F%3Fs%3Dpython" class="local-link" rel="noopener">Series of articles about Python</a> on AnonyViet for background knowledge.  Then you can easily execute the Merry Christmas python Code below:</p>
<h2 id="ftoc-ve-cay-thong-noel-voi-vong-lap-for" class="ftwp-heading">Draw a Christmas tree with a For . loop</h2>
<p>With basic Python knowledge, you can draw a Christmas tree with an extremely simple For loop.  Here is the Full Code:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic"># Function to draw a Christmas tree with a given height&#13;
def draw_tree(height):&#13;
  # Loop through each row of the tree&#13;
  for i in range(1, height + 1):&#13;
    # Print the spaces before the asterisks on each row&#13;
    for j in range(height - i):&#13;
      print(" ", end="")&#13;
    # Print the asterisks on each row&#13;
    for j in range(2 * i - 1):&#13;
      print("*", end="")&#13;
    # Move to the next line&#13;
    print()&#13;
# Call the function to draw a tree with a height of 5&#13;
draw_tree(5)</pre>
<p>On the last line: <code>draw_tree(5)</code>change the number 5 to another number to change the height of the Christmas tree in Python.</p>
<p>Here&#8217;s the result:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">    *&#13;
   ***&#13;
  *****&#13;
 *******&#13;
*********&#13;
</pre>
<h2 id="ftoc-code-python-cay-thong-noel-voi-bau-troi-day-sao" class="ftwp-heading">Code python Christmas tree with starry sky</h2>
<p><img post-id="229" fifu-featured="1" decoding="async" class="aligncenter size-full wp-image-44518" src="https://anonyviet.com/wp-content/uploads/2022/12/code-cay-thong-noel-python.png" alt="Code Christmas tree in Python &#8211; Merry Christmas Python" title="Code Christmas tree in Python &#8211; Merry Christmas Python" width="607" height="309" srcset="https://anonyviet.com/wp-content/uploads/2022/12/code-cay-thong-noel-python.png 607w, https://anonyviet.com/wp-content/uploads/2022/12/code-cay-thong-noel-python-300x153.png 300w" sizes="(max-width: 607px) 100vw, 607px" title="Code Christmas tree in Python - Merry Christmas Python 8"/></p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">from turtle import *&#13;
from random import randint&#13;
&#13;
&#13;
def create_rectangle(turtle, color, x, y, width, height):&#13;
    turtle.penup()&#13;
    turtle.color(color)&#13;
    turtle.fillcolor(color)&#13;
    turtle.goto(x, y)&#13;
    turtle.pendown()&#13;
    turtle.begin_fill()&#13;
&#13;
    turtle.forward(width)&#13;
    turtle.left(90)&#13;
    turtle.forward(height)&#13;
    turtle.left(90)&#13;
    turtle.forward(width)&#13;
    turtle.left(90)&#13;
    turtle.forward(height)&#13;
    turtle.left(90)&#13;
&#13;
    # fill the above shape&#13;
    turtle.end_fill()&#13;
    # Reset the orientation of the turtle&#13;
    turtle.setheading(0)&#13;
&#13;
&#13;
def create_circle(turtle, x, y, radius, color):&#13;
    oogway.penup()&#13;
    oogway.color(color)&#13;
    oogway.fillcolor(color)&#13;
    oogway.goto(x, y)&#13;
    oogway.pendown()&#13;
    oogway.begin_fill()&#13;
    oogway.circle(radius)&#13;
    oogway.end_fill()&#13;
&#13;
&#13;
BG_COLOR = "#0080ff"&#13;
&#13;
oogway = Turtle()&#13;
# set turtle speed&#13;
oogway.speed(2)&#13;
screen = oogway.getscreen()&#13;
# set background color&#13;
screen.bgcolor(BG_COLOR)&#13;
# set tile of screen&#13;
screen.title("Merry Christmas")&#13;
# maximize the screen&#13;
screen.setup(width=1.0, height=1.0)&#13;
&#13;
y = -100&#13;
# create tree trunk&#13;
create_rectangle(oogway, "red", -15, y-60, 30, 60)&#13;
&#13;
# create tree&#13;
width = 240&#13;
oogway.speed(10)&#13;
while width &gt; 10:&#13;
    width = width - 10&#13;
    height = 10&#13;
    x = 0 - width/2&#13;
    create_rectangle(oogway, "green", x, y, width, height)&#13;
    y = y + height&#13;
&#13;
# create a star a top of tree&#13;
oogway.speed(1)&#13;
oogway.penup()&#13;
oogway.color('yellow')&#13;
oogway.goto(-20, y+10)&#13;
oogway.begin_fill()&#13;
oogway.pendown()&#13;
for i in range(5):&#13;
    oogway.forward(40)&#13;
    oogway.right(144)&#13;
oogway.end_fill()&#13;
&#13;
tree_height = y + 40&#13;
&#13;
# create moon in sky&#13;
# create a full circle&#13;
create_circle(oogway, 230, 180, 60, "white")&#13;
# overlap with full circle of BG color to make a crescent shape&#13;
create_circle(oogway, 220, 180, 60, BG_COLOR)&#13;
&#13;
# now add few stars in sky&#13;
oogway.speed(10)&#13;
number_of_stars = randint(20,30)&#13;
# print(number_of_stars)&#13;
for _ in range(0,number_of_stars):&#13;
    x_star = randint(-(screen.window_width()//2),screen.window_width()//2)&#13;
    y_star = randint(tree_height, screen.window_height()//2)&#13;
    size = randint(5,20)&#13;
    oogway.penup()&#13;
    oogway.color('white')&#13;
    oogway.goto(x_star, y_star)&#13;
    oogway.begin_fill()&#13;
    oogway.pendown()&#13;
    for i in range(5):&#13;
        oogway.forward(size)&#13;
        oogway.right(144)&#13;
    oogway.end_fill()&#13;
&#13;
# print greeting message&#13;
oogway.speed(1)&#13;
oogway.penup()&#13;
msg = "Merry Christmas em iuuuuuuuu"&#13;
oogway.goto(0, -200)  # y is in minus because tree trunk was below x axis&#13;
oogway.color("white")&#13;
oogway.pendown()&#13;
oogway.write(msg, move=False, align="center", font=("Arial", 15, "bold"))&#13;
&#13;
oogway.hideturtle()&#13;
screen.mainloop()</pre>
<h2 id="ftoc-thiep-giang-sinh-nguoi-tuyet-bang-python" class="ftwp-heading"> Snowman Christmas card in Python</h2>
<p>This code will draw a snowman and have snowfall with arbitrary text.  You can use the Python editor to rename your name however you like.  Let&#8217;s <strong>convert python to exe</strong> and send it to your crush, he will surely love you.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-44519" src="https://anonyviet.com/wp-content/uploads/2022/12/code-thiep-noel-python.png" alt="python christmas code" width="606" height="564" srcset="https://anonyviet.com/wp-content/uploads/2022/12/code-thiep-noel-python.png 606w, https://anonyviet.com/wp-content/uploads/2022/12/code-thiep-noel-python-300x279.png 300w" sizes="auto, (max-width: 606px) 100vw, 606px" title="Code Christmas tree in Python - Merry Christmas Python 9"/></p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">import turtle&#13;
import random&#13;
import time&#13;
&#13;
width = height = 500&#13;
&#13;
window = turtle.Screen()&#13;
window.setup(width, height)&#13;
window.bgcolor("sky blue")&#13;
window.title("Happy Holidays")&#13;
&#13;
snowball_rate = 1, 3&#13;
snowball_size = 5, 15&#13;
wind_change = 1, 5&#13;
max_wind = 3&#13;
&#13;
&#13;
# Create all circle-shaped objects&#13;
def make_circle(turtle_name, x, y, size, colour):&#13;
    turtle_name.color(colour)&#13;
    turtle_name.penup()&#13;
    turtle_name.setposition(x, y)&#13;
    turtle_name.dot(size)&#13;
&#13;
&#13;
# Create new snowballs and store in list&#13;
list_of_snowballs = []&#13;
&#13;
&#13;
def make_snowball():&#13;
    snowball = turtle.Turtle()&#13;
    snowball.color("white")&#13;
    snowball.penup()&#13;
    snowball.setposition(random.randint(-2 * width, width / 2), height / 2)&#13;
    snowball.hideturtle()&#13;
    snowball.size = random.randint(*snowball_size)&#13;
    list_of_snowballs.append(snowball)&#13;
&#13;
&#13;
def move_snowball(turtle_name, falling_speed=1, wind=0):&#13;
    turtle_name.clear()&#13;
    turtle_name.sety(turtle_name.ycor() - falling_speed)&#13;
    if wind:&#13;
        turtle_name.setx(turtle_name.xcor() + wind)&#13;
    turtle_name.dot(turtle_name.size)&#13;
&#13;
&#13;
# Snowman: body&#13;
snowman = turtle.Turtle()&#13;
x_position = 0&#13;
y_positions = 75, 0, -100&#13;
size = 75&#13;
for y in y_positions:&#13;
    make_circle(snowman, x_position, y, size, "white")&#13;
    size = size * 1.5&#13;
&#13;
# Snowman: buttons&#13;
button_seperation = 25&#13;
button_y_positions = [y_positions[1] - button_seperation,&#13;
                      y_positions[1],&#13;
                      y_positions[1] + button_seperation]&#13;
for y in button_y_positions:&#13;
    make_circle(snowman, x_position, y, 10, "black")&#13;
&#13;
# Snowman: eyes&#13;
y_offset = 10&#13;
x_seperation = 15&#13;
for x in x_position - x_seperation, x_position + x_seperation:&#13;
    make_circle(snowman, x, y_positions[0] + y_offset, 20, "green")&#13;
    make_circle(snowman, x, y_positions[0] + y_offset, 10, "black")&#13;
&#13;
# Snowman: nose&#13;
snowman.color("orange")&#13;
snowman.setposition(x_position - 10, y_positions[0] - y_offset)&#13;
snowman.shape("triangle")&#13;
snowman.setheading(200)&#13;
snowman.turtlesize(0.5, 2.5)&#13;
&#13;
window.tracer(0)&#13;
&#13;
# Ground&#13;
grass = turtle.Turtle()&#13;
grass.fillcolor("forest green")&#13;
grass.penup()&#13;
grass.setposition(-width / 2, -height / 2)&#13;
grass.begin_fill()&#13;
for _ in range(2):&#13;
    grass.forward(width)&#13;
    grass.left(90)&#13;
    grass.forward(70)&#13;
    grass.left(90)&#13;
grass.end_fill()&#13;
&#13;
ground = turtle.Turtle()&#13;
for x in range(int(-width / 2), int(width / 2), int(width / 200)):&#13;
    make_circle(ground, x, -180, random.randint(5, 20), "white")&#13;
&#13;
text = turtle.Turtle()&#13;
text.color("red")&#13;
text.penup()&#13;
text.setposition(-100, 170)&#13;
#chữ thứ 1&#13;
text.write("Happy Holidays", font=("Apple Chancery", 30, "bold"), align="center")&#13;
text.setposition(130, 140)&#13;
text.color("dark green")&#13;
#chữ thứ 3&#13;
text.write("AnonyViet", font=("Avenir", 30, "bold"), align="right")&#13;
text.color("black")&#13;
#chữ thứ 4&#13;
text.write(".com", font=("Avenir", 30, "normal"), align="left")&#13;
text.setx(50)&#13;
#chữ thứ 2&#13;
text.write("from", font=("Apple Chancery", 20, "bold"), align="right")&#13;
text.hideturtle()&#13;
&#13;
time_delay = 0&#13;
start_time = time.time()&#13;
wind = 0&#13;
wind_delay = 5&#13;
wind_timer = time.time()&#13;
wind_step = 0.1&#13;
while True:&#13;
    if time.time() - start_time &gt; time_delay:&#13;
        make_snowball()&#13;
        start_time = time.time()&#13;
        time_delay = random.randint(*snowball_rate) / 10&#13;
&#13;
    for snowball in list_of_snowballs:&#13;
        move_snowball(snowball, wind=wind)&#13;
        if snowball.ycor() &lt; -height / 2:&#13;
            snowball.clear()&#13;
            list_of_snowballs.remove(snowball)&#13;
&#13;
    if time.time() - wind_timer &gt; wind_delay:&#13;
        wind += wind_step&#13;
        if wind &gt;= max_wind:&#13;
            wind_step = -wind_step&#13;
        elif wind &lt;= 0:&#13;
            wind_step = abs(wind_step)&#13;
&#13;
        wind_timer = time.time()&#13;
        wind_delay = random.randint(*wind_change) / 10&#13;
&#13;
    window.update()&#13;
&#13;
turtle.done()</pre>
<h2 id="ftoc-code-python-cay-thong-nodel-co-tuyet-roi" class="ftwp-heading">Code Python pine node with snow</h2>
<p>The Python code below will draw a Christmas tree with surrounding lights and snow effect.  You can also change the text in the form you like to send to friends and people on Christmas.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-44520" src="https://anonyviet.com/wp-content/uploads/2022/12/code-python-merry-christmas.png" alt="code python merry christmas" width="440" height="438" srcset="https://anonyviet.com/wp-content/uploads/2022/12/code-python-merry-christmas.png 440w, https://anonyviet.com/wp-content/uploads/2022/12/code-python-merry-christmas-300x300.png 300w, https://anonyviet.com/wp-content/uploads/2022/12/code-python-merry-christmas-150x150.png 150w, https://anonyviet.com/wp-content/uploads/2022/12/code-python-merry-christmas-75x75.png 75w" sizes="auto, (max-width: 440px) 100vw, 440px" title="Code Christmas tree in Python - Merry Christmas Python 10"/></p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">import turtle&#13;
import random&#13;
&#13;
web_based = True&#13;
# web_based = False&#13;
&#13;
if web_based:&#13;
    i_scale = 1.5&#13;
    snow_size = 4&#13;
    snow_speed = 3&#13;
    draw_speed = 10&#13;
    rate_of_snow_balls = 6&#13;
else:&#13;
    i_scale = 1&#13;
    snow_size = 7&#13;
    snow_speed = 2&#13;
    draw_speed = 10&#13;
    rate_of_snow_balls = 2&#13;
&#13;
width = 600 / i_scale&#13;
height = 600 / i_scale&#13;
&#13;
screen = turtle.Screen()&#13;
if not web_based:&#13;
    screen.setup(width, height)&#13;
    screen.title("Happy Christmas from AnonyViet")&#13;
&#13;
&#13;
# screen.tracer(0)&#13;
&#13;
&#13;
def make_triangle(x, y, size, outline, triangle):&#13;
    triangle.hideturtle()&#13;
    triangle.penup()&#13;
    triangle.setposition(x, y)&#13;
    triangle.pensize(3)&#13;
    if outline:&#13;
        triangle.pendown()&#13;
    if not outline:&#13;
        triangle.fillcolor("forest green")&#13;
        triangle.begin_fill()&#13;
    triangle.setposition(x + size, y - size)&#13;
    triangle.setposition(x - size, y - size)&#13;
    triangle.setposition(x, y)&#13;
    if not outline:&#13;
        triangle.end_fill()&#13;
&#13;
&#13;
def make_ball(x, y, size, colour, ball):&#13;
    ball.hideturtle()&#13;
    ball.penup()&#13;
    ball.setposition(x, y)&#13;
    ball.color(colour)&#13;
    ball.dot(size)&#13;
&#13;
&#13;
def move_snow(snow):&#13;
    position = snow.position()&#13;
    snow.clear()&#13;
    make_ball(position[0], position[1] - snow_speed, snow_size, "white", snow)&#13;
&#13;
&#13;
def snow_fall():&#13;
    rand_make_snow = random.randint(0, rate_of_snow_balls)&#13;
    if rand_make_snow == 0:&#13;
        snow = turtle.Turtle()&#13;
        snow.hideturtle()&#13;
        snow.penup()&#13;
        list_of_snow.append(snow)&#13;
        make_ball(random.randint(-width / 2, width / 2), width / 2, snow_size,&#13;
                  "white", snow)&#13;
    for snow in list_of_snow:&#13;
        move_snow(snow)&#13;
        if snow.position()[1] &lt;= -width / 2:&#13;
            snow.clear()&#13;
            list_of_snow.remove(snow)&#13;
            del snow&#13;
    screen.update()&#13;
&#13;
&#13;
# make tree (main part)&#13;
triangle_1 = turtle.Turtle()&#13;
triangle_1.speed(draw_speed)&#13;
outline = True&#13;
for repeat in range(2):&#13;
    make_triangle(0, width / 3, width / 6, outline, triangle_1)&#13;
    make_triangle(0, width / 4, width / 4, outline, triangle_1)&#13;
    make_triangle(0, width / 8, width / 3, outline, triangle_1)&#13;
    outline = False&#13;
&#13;
screen.tracer(0)&#13;
stem = turtle.Turtle()&#13;
# white snowy ground&#13;
stem.penup()&#13;
stem.hideturtle()&#13;
stem.setposition(-width, -width / 3)&#13;
stem.color("white")&#13;
stem.begin_fill()&#13;
stem.setposition(width, -width / 3)&#13;
stem.setposition(width, -width / 2)&#13;
stem.setposition(-width, -width / 2)&#13;
stem.end_fill()&#13;
screen.update()&#13;
&#13;
# tree stem&#13;
stem.color("brown")&#13;
stem.setposition(-width / 30, -width / 4.8)&#13;
screen.tracer(1)&#13;
stem.pendown()&#13;
stem.begin_fill()&#13;
stem.setposition(width / 30, -width / 4.8)&#13;
stem.setposition(width / 30, -3 * width / 8)&#13;
stem.setposition(-width / 30, -3 * width / 8)&#13;
stem.setposition(-width / 30, -width / 4.8)&#13;
stem.end_fill()&#13;
&#13;
screen.bgcolor("sky blue")&#13;
&#13;
# decorations: balls&#13;
screen.tracer(2)&#13;
ball_colours = ["red", "red", "red", "gold", "violet", "white"]&#13;
ball_positions = [(-width / 30, width / 4), (3 * width / 40, width / 5),&#13;
                  (-width / 20, width / 6), (width / 30, width / 9),&#13;
                  (-width / 12, width / 30), (width / 12, width / 24),&#13;
                  (-width / 9, -width / 20), (width / 8, -width / 15),&#13;
                  (0, -width / 6), (-width / 6, -width / 6),&#13;
                  (width / 5, -width / 7.5)&#13;
                  ]&#13;
for position in ball_positions:&#13;
    make_ball(position[0], position[1], 20 / i_scale,&#13;
              random.choice(ball_colours),&#13;
              turtle.Turtle())&#13;
    screen.update()&#13;
&#13;
# snow is falling…&#13;
list_of_snow = []&#13;
&#13;
screen.tracer(0)&#13;
for _ in range(50):&#13;
    snow_fall()&#13;
&#13;
text_1 = turtle.Turtle()&#13;
text_1.hideturtle()&#13;
text_1.penup()&#13;
text_1.setposition(0, width / 2.7)&#13;
text_1.color("red")&#13;
# text_1.write("Merry Christmas", font=("Georgia", 30, "bold"), align="center")&#13;
text_1.write("Merry Christmas",&#13;
             font=("Apple Chancery", max(int(30 / i_scale), 15), "bold"),&#13;
             align="center")&#13;
&#13;
for _ in range(25):&#13;
    snow_fall()&#13;
&#13;
text_1.setposition(width / 60, -width / 2.18)&#13;
text_1.color("black")&#13;
# text_1.write("from", font=("Georgia", 20, "normal"), align="center")&#13;
text_1.write("from",&#13;
             font=("Apple Chancery", max(int(20 / i_scale), 10), "normal"),&#13;
             align="center")&#13;
if web_based:&#13;
    text_1.setposition(width / 6, -width / 2.14)&#13;
else:&#13;
    text_1.setposition(width / 7.5, -width / 2.14)&#13;
text_1.color("forest green")&#13;
# text_1.write("code", font=("Arial", 30, "normal"), align="center")&#13;
text_1.write("code", font=("Avenir", max(int(30 / i_scale), 15), "normal"),&#13;
             align="center")&#13;
# text_1.setposition(150, -280)&#13;
if web_based:&#13;
    text_1.setposition(width / 2.95, -width / 2.14)&#13;
else:&#13;
    text_1.setposition(width / 3.85, -width / 2.14)&#13;
text_1.color("black")&#13;
# text_1.write("today", font=("Arial", 30, "normal"), align="center")&#13;
text_1.write("today", font=("Avenir", max(int(30 / i_scale), 15), "normal"),&#13;
             align="center")&#13;
&#13;
if web_based:&#13;
    for _ in range(200):&#13;
        snow_fall()&#13;
else:        &#13;
    while True:&#13;
        snow_fall()&#13;
&#13;
turtle.done()&#13;
</pre>
</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;44517&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (2 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (2 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/code-christmas-tree-in-python-merry-christmas-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2022/12/code-cay-thong-noel-python.png" medium="image"></media:content>
            	</item>
	</channel>
</rss>
