TurtleScript Programming Reference The Grammar of TurtleScript Comments Commands Numbers Strings Boolean (true/false) values Mathematical, boolean and comparing operators Mathematical operators Boolean (true/false) operators Comparing operators Commands Moving the turtle Where is the turtle? The turtle has a pen Commands to control the canvas Commands to clean up The turtle is a sprite Can the turtle write? Mathematical commands Input and feedback through dialogs Assignment of variables Controlling execution Have the turtle wait Execute “ if” If not, in other words: “ else” The “ while” loop The “ repeat” loop The “ for” loop, a counting loop Leave a loop Stop executing your program Checking assertions at runtime Create your own commands with “ learn” 5. They are intended for developers only, as most users will wantnto install it from the packages available for their. These are generic installation instructions to install kturtle fromnsource.
Getting Started First steps with TurtleScript: meet the Turtle! The Turtle Moves More examples 4. Nowadays kturtle uses CMake as its build system, whereasnthe instructions on the doc refer to the old autotools build system. Using KTurtle The Editor The Canvas The Inspector The Toolbar The Menubar The File Menu The Edit Menu The Canvas Menu The Run Menu The Tools Menu The Settings Menu The Help Menu The Statusbar 3.
Introduction What is TurtleScript? Features of KTurtle 2.