Wand path_line() function in Python Last Updated : 20 Jun, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report path_line() is a function specially introduced for paths. path_line() draws a line from a destination point to the point we want the line we end to. It takes only end point as argument. Syntax : wand.drawing.path_line(to, relative) Parameters: ParameterInput TypeDescriptiontosequence or (numbers.Real, numbers.Real)pair which represents coordinates to drawn to.relativebooltreat given coordinates as relative to current point. Example #1: Python3 from wand.image import Image from wand.drawing import Drawing from wand.color import Color with Drawing() as draw: draw.stroke_width = 2 draw.stroke_color = Color('black') draw.fill_color = Color('white') draw.path_start() # Start middle-left draw.path_move(to =(10, 100)) # Continue path to right draw.path_line(to =(100, 0), relative = True) # Continue path to bottom left draw.path_line(to =(10, 80), relative = True) draw.path_finish() with Image(width = 200, height = 200, background = Color('lightgreen')) as image: draw(image) image.save(filename ="pathline.png") Output : Comment More infoAdvertise with us Next Article Wand line() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-wand Practice Tags : python Similar Reads Wand line() function in Python line() is another drawing function present in wand.drawing module. As the name implies line() function is used to draw a line in the image. line() function only need two arguments that are start and end point of the line that we want to draw. Syntax : wand.drawing.line(start, end) Parameters : Param 2 min read Wand path_move() function in Python path_move() is another function introduced in wand for paths. The main aim of path_move() function is to set new starting point for a new sub_path. Given to parameter can be relative, or absolute, by setting the relative flag. Syntax : wand.drawing.path_move(to, relative) Parameters: Parameter Input 1 min read Wand point() function in Python point() is another drawing function and simplest of all. point() function basically draw a point on a particular point on an image. It simply takes two x, y arguments for the point coordinate. Syntax : wand.drawing.point(x, y) Parameters: ParameterInput TypeDescriptionxnumbers.Realx coordinate of po 1 min read Wand polyline() function in Python polyline() is another drawing function present in wand.drawing module of Wand. polyline() is similar to polygon() function the only difference is that, it will not close the stroke line b/w first and last point. Similar to polygon() it also takes a list of point tuples as an argument. Syntax : wand. 1 min read Wand path_horizontal_line() function in Python The path_horizontal_line() is another function for path. path_horizontal_line() function generates a horizontal line from a destination point to a particular x point. It takes only x in arguments as a point upto which line is being drawn. Syntax: wand.drawing.path_horizontal_line(to, relative) Param 1 min read Wand path_curve() function in Python path_curve() is a function specially introduced for paths. path_curve() draws a cubic bezier curve from the destination point of the Image to a particular point (x, y) with the help of control points. Syntax : wand.drawing.path_curve(to, controls, smooth, relative) Parameters: ParameterInput TypeDes 1 min read Like