In this tutorial, we will draw parallel lines using the Flowgorithm Graphics. We will apply the concepts learned in the previous post about Turtle Graphics and the introduction to the new Turtle Graphics symbols. Flowgorithm 3.0 introduced three new flowchart symbols to support Turtle graphics drawings.
Parallel lines are the lines that are non-intersecting lines. They are always parallel and equidistant from each other.
We will draw two lines that are equidistant to each other in the flowchart. Each line would be 200 units in length and be separated by 50 units of distance.
// Parallel Lines using Flowgorithm Graphics
Turn Right 90 // 90 degrees
Turn Right 90
Send Turtle Home
Initially, the Turle will be placed at the center and the head turned up. We can draw the line using the Forward symbol. Specify the units to draw in the textbox.
The turtle will only draw on the window when the option ‘Pen Down’ is marked or checked.
Now move the turtle head 90 degrees to the right. Move the turtle 50 units of distance. To make the turtle move instead, uncheck the ‘Pen Down’ option.
Turn the turtle head again 90 degrees to the right and draw another line. We can send the turtle to the center by using the Home flowchart symbol.
The flowchart and the Turtle drawing:
Flowgorithm flowchart tutorials on this website:
For more information on the Flowgorithm tool, please visit the official website at: