Flowgorithm Turtle Graphics Symbols
Overview
In this tutorial, we will learn Flowgorithm Turtle Graphics symbols. There are three symbols associated with Turtle graphics in Flowgorithm. The new symbols are as follows:
- Forward Symbol
- Turn Symbol
- Home Symbol
- Clear Symbol
Before using the new symbols, ensure you have the 3.0 or higher version installed on your machine. Go to the Help >> About menu option and check if you have the latest version installed on the machine.
Turtle Graphics Symbols
Let’s learn the new flowchart symbols. Right-click on the flow control line. We can find the three new symbols under the Turtle graphics section.
Turtle Symbol | Symbol Name | Purpose |
Home | The Home symbol returns the turtle to its starting position and sets the Turtle angle to 90 degrees. The Home of the turtle is the center of the graphics window. | |
Turn | The Turn symbol will make the turtle turn its head to some degree. It changes the angle by rotating the Turtle left or right by a specified number of degrees. | |
Forward | The Forward symbol will make the turtle draw a line or move by a specific distance. By default, the turtle will draw a line with the Pen Down option checked, and the symbol changes to the Draw symbol.
If the pen is up, the Turtle moves by the specified distance, and the symbol changes to the Move symbol. |
|
Clear | The Clear symbol will clear the screen and place the turtle at the starting position of the screen. Home is the starting position, which is the center of the turtle window screen. |
Sample Illustration of how turtle draws with the flowchart operations:
XML Syntax
The XML representation of the flowchart symbols in the .fprg file.
XML | Flowchart Turtle Symbols |
<home/>
The XML tag for the turtle Home symbol. The turtle will return to the starting position on the graphic window. |
|
<turn expression=”90″ rotate=”right”/>
The XML tag for the turtle Turn symbol. The turtle rotates 90 degrees in the right direction. |
|
<forward expression=”100″ pen=”down”/>
The XML tag for the turtle forward symbol. The turtle draws a line at a distance of 100. |
|
<clear/>
The XML tag for the clear symbol. The symbol clears the graphics window and returns the turtle to home. |
Examples
Flowchart Examples that use the symbols:
Draw Parallel Lines:
Draw a Circle:
—
Flowgorithm Tutorials
Flowgorithm flowchart tutorials on this website:
https://www.testingdocs.com/flowgorithm-flowchart-tutorial/
Flowgorithm Website
For more information on the Flowgorithm tool, please visit the official website at: