Latvia Flag |
About Flag:
The basic style of the flag become employed by a Latvian social unit in 1279, as is documented in an exceedingly 14th-century manuscript stated because the Livländische Reimchronik (“Livland Rhyme-Chronicle”). historiographer historiographer historiographer discovered this reference within the nineteenth century and popularized the “banner pink in shade, scale back through with a white stripe.” extended below Russian rule, ethnic Latvians wanted such cultural distinctions around that they may rally to keep up their national identity. school students at the university of an urban center, as an associate degree example, raised a crimson-and-white flag in 1870.
for the period of international conflict I and also the Russian Revolution, the flag of the Republic of Latvia become progressively displayed. It flew on Gregorian calendar month eighteen, 1918, whereas the Republic of Latvia announced its independence, and it became formally followed on Gregorian calendar month twenty, 1923. once Russia absorbed u. s. in 1940, the flag disappeared, but it had been by no means forgotten, especially through Latvians in exile. The 1940–53 flag of the Latvian Soviet Socialist Republic resembled the usaS.R. flag, with the replacement of the massive name by the initials of the republic’s name. From 1953 to 1990 the Latvian S.S.R. flag becomes a version of the usaS.R. banner incorporating four wavy alternating white and blue stripes aboard the lowest edge. usage of the flag turned into revived within the Republic of Latvia in 1988, and, on September 29 of that year, a show of the flag became legalized. Soviet Latvian symbols had been modified on February twenty-seven, 1990, and also the 1918–forty flag was all over again the sole country-wide flag on the time of independence on August twenty-one, 1991.
Code:
# Draw Latvia flag in turtle
from turtle import *
bgcolor('black')
hideturtle() # for hiding turtle icon
speed(5) # to increasing the speed of output
height=200 # flag height
width=2*height # flag width
x_pos=-width/2 # initial x position
y_pos=height/2 # initial y position
penup() # turtle pointer up
colormode(255)
def draw_rect(x_pos,y_pos,height,width):
goto(x_pos,y_pos) # changing the position of the turtle pointer
pencolor(164,52,58) # changing the pen color
fillcolor(164,52,58) # filling the color
pendown() # turtle pointer down
begin_fill() # beginning the filling
for i in range(2):
forward(width) # Forward turtle by width units
right(90) # Turn right turtle by 90 degree
forward(height) # Forward turtle by height units
right(90) # Turn right turtle by 90 degree
end_fill() # ending the filling
penup() # turtle pointer up
# end def
def draw_stripe(x_pos,y_pos,height,width):
goto(x_pos,y_pos/5) # changing the position of the turtle pointer
pencolor(255,255,255) # changing the pen color
fillcolor(255,255,255) # filling the color
pendown() # turtle pointer down
begin_fill() # beginning the filling
for i in range(2):
forward(width) # Forward turtle by width units
right(90) # Turn right turtle by 90 degree
forward(height/5) # Forward turtle by height units
right(90) # Turn right turtle by 90 degree
end_fill() # ending the filling
penup() # turtle pointer up
# end def
draw_rect(x_pos,y_pos,height,width)
draw_stripe(x_pos,y_pos,height,width)
# It will keep output to wait for the click,
# Otherwise output will be disappear.
exitonclick()
Output:
No comments:
Post a Comment