ASMR programming How to draw amazing pattern using python turtle 2024 | python graphics | ASMR

preview_player
Показать описание
In this video, we'll walk you through the process of creating a stunning line pattern using Python's Turtle graphics module. Whether you're a beginner or looking to enhance your Python skills, this tutorial is perfect for you
================================================================
more video: 😉

================================================================
tags:-
#Python
#TurtleGraphics
#CodingTutorial
#Programming
#LinePattern
#PythonTurtle
#PythonBeginner
#PythonTutorial
#PythonGraphics
#CreativeCoding
#CodeWithMe
#LearnToCode
#PythonProgramming
#patterndesigner
#turtlemodule
#python #howtopython #pythonlogo #turtle #pythonprogramming #3dpython #pythontutorial #python3 #pythonforbeginners #funnypython
#pythonturtle #pythonturtlegraphics #simplepython #howtodraw #drawing
#pythondrawing #d-tech #technologytuesday #programming #pythonguitutorial #pythonbeginner #logo #drawinglogo
#howto #tips #tricks #tipsandtricks #tips_and_tricks #tipsofficial #asmr
#asmrvideo #asmrcommunity #asmrcoding #asmrprogramming #asmrpython
Рекомендации по теме
Комментарии
Автор

PYTHON CODE:-

from turtle import *
import random
title("generated art with python by D-TECH")
bgcolor()
pencolor("black")
width(2)
setup(1000, 1000)


def tiling(x, y, s, l):
# darwing
if l == 0:

if random.random() < 0.5:
# vertical line
penup()
goto(x, y - s)
pendown()
goto(x, y + s)

else:
# horizontal line
penup()
goto(x - s, y)
pendown()
goto(x + s, y)
else:
s /= 2
l -= 1
tiling(x - s, y + s, s, l)
tiling(x + s, y + s, s, l)
tiling(x - s, y - s, s, l)
tiling(x + s, y - s, s, l)


hideturtle()
tracer(True)
speed(50)
tiling(0, 0, 400, 5)
exitonclick()

Nadush_bro