turtle.shearfactor() function in Python Last Updated : 01 Aug, 2020 Comments Improve Suggest changes Like Article Like Report The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.shearfactor() This function is used to set or return the current shearfactor. It Shears the turtleshape according to the given shearfactor shear, which is the tangent of the shear angle. Syntax : turtle.shearfactor(shear=None) Parameter: shear(optional): number, tangent of the shear angle. Below is the implementation of the above method with some examples : Example 1 : Python3 # importing package import turtle # set turtle turtle.speed(1) turtle.shape("turtle") turtle.up() turtle.goto(-150,0) turtle.down() # forward turtle by 100 turtle.forward(100) # set shear by +ive value turtle.shearfactor(0.2) # forward turtle by 100 turtle.forward(100) # set shear by -ive value turtle.shearfactor(-0.2) # forward turtle by 100 turtle.forward(100) Output : Example 2 : Python3 # importing package import turtle # set turtle turtle.speed(1) turtle.up() turtle.goto(-40,40) turtle.down() # set shear and apply to # all shapes turtle.shearfactor(0.5) # get shape sh=turtle.getshapes() # loop for pattern for i in range(len(sh)): turtle.shape(sh[i]) turtle.forward(100+10*i) turtle.right(90) turtle.forward(100+10*i) turtle.right(90) Output : Comment More infoAdvertise with us Next Article turtle.shearfactor() function in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads turtle.seth() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.seth() This method is used to set the orientation of the turtle to to_angle. 2 min read turtle.sety() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.sety() This method is used to set the turtle's second coordinate to y, leavi 1 min read turtle.setx() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.setx() This method is used to set the turtle's first coordinate to x, leave 1 min read turtle.shapetransform() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.shapetransform() This function is used to set or return the current transfor 2 min read turtle.shape() function in Python The turtle module in Python simplifies graphical programming, making it ideal for beginners. It supports both object-oriented and procedural approaches and relies on Tkinter as its graphical engine. One of its key functions, turtle.shape() allows users to set or retrieve the shape of the turtle curs 3 min read turtle.towards() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.towards() This function is used to return the angle, between the line from t 2 min read turtle.speed() function in Python The turtle module in Python enables graphics and animations using Tkinter. It supports object-oriented and procedural approaches. The turtle.speed() method is used to control the speed of the turtle's movement. It accepts a numerical value or a predefined string and adjusts the turtle's speed accord 2 min read turtle.stamp() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.stamp() This method is used to stamp a copy of the turtleshape onto the canv 1 min read turtle.tilt() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.tilt() This function is used to rotate the turtleshape by the angle from its 1 min read turtle.resizemode() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.resizemode() This function is used set resizemode to one of the values: "aut 1 min read Like