1
2
#!/bin/python3
import turtle
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Adding or removing images is disabled during broadcasting. You'll be able to update images again once the broadcast session is over.

Images listed here are available to use in your code in this trinket. Click the Image Library button to include more or upload new images.

How To Use Images

Images can be used with the turtle module.

import turtle
screen = turtle.Screen()
# set the screen background
screen.bgpic("filename.png")

# Or, set the shape of a turtle
screen.addshape("filename.png")
tina = turtle.Turtle()
tina.shape("filename.png")

Powered by

Hi! This code draws swirls.

To draw random swirls, change the code below the 'TODO' comments using the random.randint() function. Use the random.choice() function to choose random colors for each swirl. For a full tutorial, see [link to YouTube video + timestamp].

You can play around with the different parameters to change the number of swirls, choice of color, and size range of the swirls.

Click 'Run' to run the code and produce your unique image!

Run your code first!

It looks like you haven't tried running your new code.

Try clicking  Run and if you like the result, try sharing again.

×