Skip to main content

Command Palette

Search for a command to run...

Project: Python library

Updated
Project: Python library

I have been making a python library called Turtle Functions. You can view it here: https://github.com/Noomklaw888/TurtleFunctions

In my new python library, I have added a few functions such as drawhearts, drawstars, square, triangle, and made my own circle function.

I also added some fun things such as snowman, tree, and a fibonacci square spiral! There is also a function called drawcubey that draws a character I made…

There are also some other functions such as move(moves to a specified position), randompos(moves to a random position), color(chooses a random fillcolor), and invis(turns the turtle invisible or visible).

Also, I made a bumpy shape and a spiral…

I have made some demo projects you can view in the projects folder of my github too!

Have fun coding!

“Me no understand this code…” –Guy the Lizard(fictional)

p.s. Here is a list of functions:

Basic functions

move(x,y) kind of obvious…

speed() makes the turtle speedy

color() picks a random fillcolor

invis(ivis=0) sets the invisibility to the value of invis (1 is invisible)

thick() sets line width

randompos() moves the turtle to a random position

Basic shapes

circle(cize) makes a circle of specified size

triangle(cize) draws an equilateral triangle of specified size

square(cize) draws a square of specified size

curve(cize) draws a half circle curve of specified size. Unlike other shapes, curve does not fill.

drawhearts(cize) draws a heart of specified size

drawstars(cize) draws a star of specified size

bumpy(cize) “makes a bumpy shape” of specified size

rewrite(col, text) writes text in specified color

Complex shapes

circlespiral(cize, rings=18) draws a spiral made of circles. Very slow if you don’t run speed()

snowman(height=10) draws a snowman of specified size of of size 10

fibonacci() draws a fibbonaci square spiral

tree(height=10,width=3) draws a tree of height 10 and width 3 or specified height and width

drawcubey() draws Cubey(below)