Skip to content

Commit 73c1141

Browse files
committedJan 30, 2023
first commit
1 parent 47699b4 commit 73c1141

File tree

3 files changed

+84
-1
lines changed

3 files changed

+84
-1
lines changed
 

Diff for: ‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6+
.idea
7+
68
# C extensions
79
*.so
810

Diff for: ‎README.md

+57-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,57 @@
1-
# Graphic-using-Python
1+
2+
# Graphic using python
3+
4+
In this project, you can do a Graphic start design. To make this project you need to follow this step:-
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
## Installation
16+
17+
Install package with pip
18+
19+
```bash
20+
pip install turtle
21+
pip install colorsys
22+
23+
```
24+
25+
## Deployment
26+
27+
To deploy this project run
28+
29+
```bash
30+
from turtle import *
31+
import colorsys
32+
33+
tracer(10)
34+
bgcolor('black')
35+
pensize(4)
36+
37+
h = 0
38+
39+
for i in range(411):
40+
c = colorsys.hsv_to_rgb(h, 1, 1)
41+
color(c)
42+
h += 1/37
43+
begin_fill()
44+
fillcolor('black')
45+
left(120)
46+
forward(i)
47+
left(3)
48+
circle(i,12)
49+
end_fill()
50+
51+
done()
52+
```
53+
54+
55+
![output](https://user-images.githubusercontent.com/123636419/215391010-9fc558a2-8f0e-485e-9d09-8e22118e8c91.PNG)
56+
57+

Diff for: ‎main.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from turtle import *
2+
import colorsys
3+
4+
5+
tracer(10)
6+
bgcolor('black')
7+
pensize(4)
8+
9+
h = 0
10+
11+
for i in range(411):
12+
c = colorsys.hsv_to_rgb(h, 1, 1)
13+
color(c)
14+
h += 1/37
15+
begin_fill()
16+
fillcolor('black')
17+
left(120)
18+
forward(i)
19+
left(3)
20+
circle(i,12)
21+
end_fill()
22+
23+
done()
24+
25+

0 commit comments

Comments
 (0)