Giter Club home page Giter Club logo

problemsolvewithridoy / graphic-using-python Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 9 KB

"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

License: MIT License

Python 100.00%
graphical graphics graphics-programming python-graphical-interface python-graphics graphic-using-python

graphic-using-python's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.