Turtle Library (Image Library) standard library + third-party library = Python computing ecosystem library layout turtle. setup (width, height, startx, starty) sets the size and position of the form (the computer screen position in the upper right corner) turtle. screensize (widith, height, "color") space coordinate system absolute coordinate turtle. goto (x, y) returns the coordinates turtle. fdturtle. bkturtle. circle (radius, extent, step) angle order 3 triangle angle coordinate system absolute angle Seth () changes the direction of the returnee only changes the direction but not the angle absolute angle of the returnee angle turtle. left (angle) turtle. right (angle) RGB color system (red, green, and blue) 0 ~ 255 white 255 255 255 1 1 yellow 255 255 0 1 0 foreign red 255 0 255 1 0 1 color switch turtle. colormode (mode) 1.0 decimal 255 integer default decimal paint control function penup () Lift paint pendown () drop paint pensize () paint width pencolor () paint color dot (r) draw the dot color string turtle. pencolor ("Purple") RGB small value turtle. pencolor (0.63, 0.13, 0.94) RGB tuples value turtle. pencolor (0.63, 0.13.0.94) motion control function FD () circle ()
Turtle database (turtles)