Post Reply 
Turtle application: from flowchart to source code
07-03-2022, 03:24 PM (This post was last modified: 07-03-2022 03:47 PM by compsystems.)
Post: #1
Turtle application: from flowchart to source code
Hello
There is an app called Flowgorithm http://www.flowgorithm.org/preview/index.html that allows you to code an algorithm using a flowchart.
In the latest version, it includes the preview version of line drawing and rotation via a turtle-style pixel management window.

Flowgorithm allows you to export any flowchart to a professional language like (C#, Java, JavaScript...), but Flowgorithm does not currently generate source code for turtle diagrams.

If you want to help translate the code, you are welcome, you can put the translations here and then I will send them to the author.

For example, the following pseudocode translates to Python as

pseudocode
PHP Code:
Function Main
    Draw 50
    Turn right 45
    Draw 60
    Turn left 45
    Draw 56
    Send Turtle Home
End 

Python
PHP Code:
import turtle
draw 
turtle.Turtle()
draw.forward(50)
draw.right(45)
draw.forward(60)
draw.left(45)
draw.forward(56)
draw.home() 

List of languages to incorporate code translation, you can include some external library or custom methods.
    Ada 95
    Nim
    Swift
    Applescript
    Bash
    C#
    C++
    Fortran 2003
    Java
    JavaScript
    Lua
    Pascal
    Perl
    PHP
    Powershell
    Python
    QBasic
    Ruby
    Scala
    Transact-SQL
    Typescript
    VBA
    Visual Basic.NET
    Gaddis Pseudocode
    IBO Pseudocode
    Auto Pseudocode
    MATLAB
    Smalltalk

[Image: Turtle-Graphics-Flowchart-Pseudocode-1536x864.png]
[Image: Flowgorithm-Turtle-Graphics-Flowchart-5-1536x864.png]
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)