D. Joe 397f3b2e88 | 4 years ago | |
---|---|---|
.. | ||
activity | 4 years ago | |
bower_components/prefixfree | 4 years ago | |
css | 4 years ago | |
documentation | 4 years ago | |
guide | 4 years ago | |
guide-es | 4 years ago | |
header-icons | 4 years ago | |
images | 4 years ago | |
js | 4 years ago | |
lib | 4 years ago | |
msie_flashFallback | 4 years ago | |
plugins | 4 years ago | |
po | 4 years ago | |
samples | 4 years ago | |
screenshots | 4 years ago | |
.gitignore | 4 years ago | |
COPYING | 4 years ago | |
Licence.txt | 4 years ago | |
NEWS | 4 years ago | |
README.md | 4 years ago | |
android_chrome_manifest.json | 4 years ago | |
cache.appcache | 4 years ago | |
config.xml | 4 years ago | |
index.html | 4 years ago | |
localization.ini | 4 years ago | |
manifest.json | 4 years ago | |
manifest.webapp | 4 years ago | |
package.json | 4 years ago | |
pluginify.py | 4 years ago | |
server.md | 4 years ago | |
setup.py | 4 years ago |
Turtle Blocks Javascript is an activity with a Logo-inspired graphical "turtle" that draws colorful art based on snap-together visual programming elements. Its "low floor" provides an easy entry point for beginners. It also has "high ceiling" programming, graphics, mathematics, and Computer Science features which will challenge the more adventurous student.
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.
Turtle Blocks Javascript is designed to run in a browser. Most of the development has been done in Chrome, but it should also work in Firefox. You can run it directly from index.html, from a server maintained by Sugar Labs, from the github repo, or by setting up a local server.
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.
The basic buttons and basic blocks are explained in detail in Documentation.
A guide to programming with Turtle Blocks is available in Turtle Blocks Guide.
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.
Google Code-in participant Jasmine Park has created some guides to using Turtle Blocks: Turtle Blocks: An Introductory Manual and Turtle Blocks: A Manual for Advanced Blocks
Bugs can be reported in the Sugar Labs bug tracker or in the issues section of this repository.
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.