+ 1
Why it is not filling the colour
from turtle import * title("TURTLE RACE") speed(1) #turtle.bgcolor("green") hideturtle() up() goto(-350,-350) down() begin_fill() fillcolor("blue") for i in range(4): forward(700) left(90) end_fill hideturtle() done()
6 Réponses
+ 3
Try this:
from turtle import *
title("TURTLE RACE")
speed(1)
turtle.bgcolor("green")
hideturtle()
up()
goto(-350,-350)
down()
begin_fill()
fillcolor("blue")
for i in range(4):
forward(700)
left(90)
end_fill
hideturtle()
done()
+ 3
Okay I also found it
import turtle
t = turtle.Turtle()
t.fillcolor('blue')
t.begin_fill()
for i in range(4):
t.forward(150)
t.right(90)
t.end_fill()
+ 2
The turtle.bgcolor is a comment remove the #
+ 1
I am drawing a square and want to fill blue color . But blue color is not getting filled
+ 1
Please help me with the solution. I am beginner in this
+ 1
No that is not the solution . I got it end_fill() was missing ()