RUVIDEO
Поделитесь видео 🙏

Indian Flag Using Python Turtle ? Python Programming ? Programs For Beginners ? смотреть онлайн

Code :-

import turtle

from turtle import*

#screen for output

screen = turtle.Screen()

# Defining a turtle Instance

t = turtle.Turtle()

speed(0)

# initially penup()
t.penup()

t.goto(-400, 250)
t.pendown()

# Orange Rectangle
#white rectangle

t.color("orange")
t.begin_fill()

t.forward(800)

t.right(90)

t.forward(167)

t.right(90)

t.forward(800)
t.end_fill()

t.left(90)

t.forward(167)

# Green Rectangle

t.color("green")
t.begin_fill()

t.forward(167)

t.left(90)

t.forward(800)

t.left(90)

t.forward(167)
t.end_fill()

# Big Blue Circle
t.penup()

t.goto(70, 0)
t.pendown()

t.color("navy")
t.begin_fill()

t.circle(70)
t.end_fill()

# Big White Circle
t.penup()

t.goto(60, 0)
t.pendown()

t.color("white")
t.begin_fill()

t.circle(60)
t.end_fill()

# Mini Blue Circles
t.penup()

t.goto(-57, -8)
t.pendown()

t.color("navy")

for i in range(24):

t.begin_fill()

t.circle(3)

t.end_fill()

t.penup()

t.forward(15)

t.right(15)

t.pendown()


# Small Blue Circle
t.penup()

t.goto(20, 0)
t.pendown()
t.begin_fill()

t.circle(20)
t.end_fill()
# Spokes
t.penup()

t.goto(0, 0)
t.pendown()

t.pensize(2)

for i in range(24):

t.forward(60)

t.backward(60)

t.left(15)

#to hold the
#output window
turtle.done()


How to make an Indian Flag using Turtle – Python
Here, we will be making “The Great Indian Flag” using Python Turtle Graphics. Here, we will be using many turtle functions like begin_fill(), end_fill() to fill color inside the Flag, penup(), pendown(), goto() etc to reaching the target.

Turtle graphics
In computer graphics, turtle graphics are vector graphics using a relative cursor upon a Cartesian plane. Turtle is a drawing board-like feature that lets us command the turtle and draw using it.

forward(x): moves the pen in forward direction by x units.

backward(x): moves the pen in the backward direction by x units.

right(x): rotate the pen in the clockwise direction by an angle x.

left(x): rotate the pen in the anticlockwise direction by an angle x.

penup(): stop drawing of the turtle pen.

pendown(): start drawing of the turtle pen.

begin_fill(): starts filling the color inside the shape.

fillcolor(“color_name”): sets the color to be filled.

end_fill(): stops filling the color.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Indian Flag Using Python Turtle ? Python Programming ? Programs For Beginners ?» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.