User:Ignacio RodrÃguez/TurtleArt: Difference between revisions
| Line 178: | Line 178: | ||
* start: connects action to toolbar 'Run' button | * start: connects action to toolbar 'Run' button | ||
* store in: store a number, string, or media object in a named box | * store in: store a number, string, or media object in a named box | ||
* action: top of named action stack | * action: top of named action stack | ||
* action: execute named action stack | * action: execute named action stack | ||
'''Note:''' When a named action or named box block are used, new blocks appear on the palette that correspond to these names; e.g., if a top of action stack is rename, "to square", an action block, "to square" is added to the palette. | '''Note:''' When a named action or named box block are used, new blocks appear on the palette that correspond to these names; e.g., if a top of action stack is rename, "to square", an action block, "to square" is added to the palette. | ||
| Line 206: | Line 196: | ||
* pitch: the resolution is +-8Hz | * pitch: the resolution is +-8Hz | ||
* brightness: average luminance seen through camera | * brightness: average luminance seen through camera | ||
* button down: current state of the mouse button (1 == down; 0 == ip) | * button down: current state of the mouse button (1 == down; 0 == ip) | ||
* mouse x: x position of mouse | * mouse x: x position of mouse | ||
| Line 237: | Line 226: | ||
* save SVG: save turtle graphics to the Sugar Journal as a .svg image (note: only saves the changes to the canvas in the current execution run) | * save SVG: save turtle graphics to the Sugar Journal as a .svg image (note: only saves the changes to the canvas in the current execution run) | ||
* scale: sets scale for show block (100% is full-screen) | * scale: sets scale for show block (100% is full-screen) | ||
* wait | * media wait: used to pause program while audio or video file plays | ||
* media stop: stop current sound or video | * media stop: stop current sound or video | ||
* media pause: pause current sound or video | * media pause: pause current sound or video | ||
| Line 264: | Line 253: | ||
* turtle: specify which turtle is active | * turtle: specify which turtle is active | ||
* turtle shell: import a image from the Journal to use as the turtle's 'shell', i.e., replace the turtle with a sprite. | * turtle shell: import a image from the Journal to use as the turtle's 'shell', i.e., replace the turtle with a sprite. | ||
* | * turtle x: Return x coordinates of turtle | ||
* turtle y: Return y coordinates of turtle | |||
* active turtle: the name of active turtle | |||
* turtle heading: Return heading of turtle | |||
* get data from url: gets a text string or image from a URL | |||
====Portfolio Palette==== | ====Portfolio Palette==== | ||