Note: Turtle Blocks JS closely parallels the Python version of Turtle Blocks, the version included in the Sugar distribution. Sugar users probably want to use Turtle Blocks rather than Turtle Blocks JS.
Using Turtle Art JS
Once you've launched it in your browser, start by clicking on (or dragging) blocks from the Turtle palette. Use multiple blocks to create drawings; as the turtle moves under your control, colorful lines are drawn.
You add blocks to your program by clicking on or dragging them from the palette to the main area. You can delete a block by dragging it back onto the palette. Click anywhere on a "stack" of blocks to start executing that stack or by clicking in the Rabbit (fast) or Turtle (slow) on the Main Toolbar.
Getting Started Documentation
The basic buttons and basic blocks are explained in detail in Documentation.
A quick start:
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/fast-button.png' Run your project at full speed
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/stop-turtle-button.png' Stop the current project running.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/clear-button.png' Clear the screen and return the turtles to their initial positions.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/palette-button.png' Hide or show the block palettes.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/hide-blocks-button.png' Hide or show the blocks and the palettes.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/forward.svg' Moves turtle forward.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/right.svg' Turns turtle clockwise (angle in degrees).
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/set_color.svg' Sets color of the line drawn by the turtle.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/set_pen_size.svg' Sets size of the line drawn by the turtle.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/repeat.svg' Loops specified number of times.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/action_flow.svg' Top of nameable action stack.
<img src='https://rawgithub.com/walterbender/turtleblocksjs/master/documentation/action.svg' Invokes named action stack.
Turtle Blocks has a plugin mechanism that is used to add new blocks. You can learn more about how to use plugins (and how to write them) from the Plugins Guide.
List of Plugins
- Mindstorms: blocks to interact with the LEGO Mindstorms robotics kit
- RoDi: blocks to interact with RoDi wireless robot
- Maths: addition blocks for some more advanced mathematics
- Translate: blocks for translating strings between languages, e.g., English to Spanish
- Dictionary: a block to look up dictionary definitions
- Weather: blocks to retrieve global weather forecasts
- Logic: blocks for bitwise Boolean operations
- Finance: a block for looking up market prices
- Bitcoin: a block for looking up bitcoin exchange rates
- Nutrition: blocks for exploring the nutritional content of food
- Facebook: a block for publishing a project to Facebook
- Heap: blocks to support a heap and for loading and saving data
- Accelerometer: blocks for accessing an accelerometer
- Turtle: blocks to support advanced features when using multiple turtles
- Gmap: blocks to support generation of Google maps.