Skip to content
Snippets Groups Projects
Commit 0f536133 authored by Minseong Kwon's avatar Minseong Kwon
Browse files

Upload New File

parent 8a311d22
Branches
No related tags found
No related merge requests found
import turtle as t
t.pensize(3)
#삼각형
t.penup() # 그리지 않는 상태로 시작
t.goto(-200,-50)
t.pendown #그리기 시작한다
t.begin_fill() #채우기 시작한다
#파이썬으로 도형 채우기
t.color("red")
t.circle(40,steps=3)
t.end_fill()
#사각형
t.penup()
t.goto(-100,-50)
t.pendown()
t.begin_fill()
t.color("blue")
t.circle(40,steps=4)
t.end_fill()
#오각형
t.penup()
t.goto(0,-50)
t.pendown()
t.begin_fill()
t.color("green")
t.circle(40,steps=5)
t.end_fill()
#육각형
t.penup()
t.goto(100,-50)
t.pendown()
t.begin_fill()
t.color("yellow")
t.circle(40,steps=6)
t.end_fill()
#원
t.penup()
t.goto(200,-50)
t.pendown()
t.begin_fill()
t.color("purple")
t.circle(40)
t.end_fill()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment