How to create an Easy 3D Cube in Python Turtle.

Опубликовано: 07 Июль 2021
на канале: Coding Tutorials
2,820
22

Hey Guys!
Cyber here,

This is my first video of my channel, I will try to increase the quality and content of the video in the future. Please make sure to drop a like on this video and click the notification bell so that if I upload a video in the future, You can get a Notification.

Code for the 3D Cube:

------------------------------------ UI SETUP --------------------------------------#
from turtle import *

turtle = Turtle()
screen = Screen()
screen.title("3D Cube using Python Turtle")
turtle.color('blue')



------------------------------------- CODE -----------------------------------------#

for i in range(4):
turtle.forward(100)
turtle.left(90)

turtle.goto(50, 50)

for i in range(4):
turtle.forward(100)
turtle.left(90)

turtle.goto(150, 50)
turtle.goto(100, 0)

turtle.goto(100, 100)
turtle.goto(150, 150)

turtle.goto(50, 150)
turtle.goto(0, 100)


screen.mainloop()

Thank You.

Cyber :)


На этой странице сайта вы можете посмотреть видео онлайн How to create an Easy 3D Cube in Python Turtle. длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coding Tutorials 07 Июль 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,820 раз и оно понравилось 22 зрителям. Приятного просмотра!