■ 현재-ing/ㅡPython

파이썬 점(dot), color 두가지 변수 사용, begin_fill, end_fill

with seok 2020. 7. 6. 08:37

파일 다운로드

채우기.py
0.00MB


from turtle import *

shape("turtle")

dot(50,"red")
#점(크기,색)

setx(100)

color("blue","yellow")
#컬러 두가지 변수 사용
#(테두리, 채울색)

#내부채우기
begin_fill()
circle(100)
end_fill()

color
 : 한가지 변수 또는 두가지 변수를
 : 선택하여 입력할 수 있다.

begin_fill
 : 들여쓰기와 콜론 없이
 : end_fill 사이에
 : 모두 영향을 받는 것 같다.

 

728x90