What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-11 10:15:02
how to fill a shape with colour in python turtle
fillcolor(): This helps to choose the color for filling the shape. It takes the input parameter as the color name or hex value of the color and fills the upcoming closed geographical objects with the chosen color. Color names are basic color names i.e. re... Add solution -
Python 2021-09-06 04:23:03
how to put an image in python turtle
import turtle from os import path #WARNING: IMAGES MUST BE .GIF currentDir = os.abspath(path.curdir) #get the python file location wn = turtle.Screen() wn.setup(width=700,height=400) wn.title("image test") wn.addshape(currentDir+"\\Resour... Add solution -
Python 2021-09-01 07:29:02
gun in python turtle
import turtle import os #wn is window #bp = border bullet = 'ready' #screen setup wn = turtle.Screen() wn.bgcolor('black') wn.title('SPACE.INVADERS') #border bp = turtle.Turtle() bp.speed(0) bp.color('green') bp.penup() bp.setposition(-300,-300) bp.pend... Add solution