Skip to content

Latest commit

 

History

History
97 lines (58 loc) · 2.04 KB

README.md

File metadata and controls

97 lines (58 loc) · 2.04 KB

Graphic using python

"Graphic using Python turtle" is a GitHub repository that provides a collection of Python scripts for creating graphics using the Python turtle library. The turtle library is a standard Python library that provides an easy-to-use interface for creating graphics and animations. The repository includes code examples for creating simple and complex shapes, drawing with various colors and line styles, and even creating animated graphics. The code is well-documented and designed for beginners to learn and experiment with the turtle library. The repository is open source, allowing users to contribute to the codebase and improve the collection of graphics examples. you need to follow this step:-

Installation

Install package with pip

  pip install turtle
  pip install colorsys

Deployment Project main.py

To deploy this project run

from turtle import *
import colorsys

tracer(10)
bgcolor('black')
pensize(4)

h = 0

for i in range(411):
    c = colorsys.hsv_to_rgb(h, 1, 1)
    color(c)
    h += 1/37
    begin_fill()
    fillcolor('black')
    left(120)
    forward(i)
    left(3)
    circle(i,12)
    end_fill()

done()

Output

output

Deployment Project main01.py

To deploy this project run

import turtle as t

t.bgcolor("black")
t.speed(0)
t.hideturtle()

colors = ["yellow", "red", "yellow", "red"]

for i in range(120):
    for c in colors:
        t.color(c)
        t.circle(200-i,100)
        t.lt(90)
        t.circle(200-i,100)
        t.rt(60)
        t.end_fill()
t.mainloop()

Output

Output2

You can follow me

Facebook:- https://www.facebook.com/problemsolvewithridoy/

Linkedin:- https://www.linkedin.com/in/ridoyhossain/

YouTube:- https://www.youtube.com/@problemsolvewithridoy

If you have any confusion, please feel free to contact me. Thank you