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 box 1: store a number, string, or media object in box 1 (Only available with Turtle Blocks)
* store in box 2: store a number, string, or media object in box 2 (Only available with Turtle Blocks)
* text: string input
* box 1: current value of box 1 (can be used in place of a number block) (Only available with Turtle Blocks)
* box 2: current value of box 2 (can be used in place of a number block) (Only available with Turtle Blocks)
* box: current value of named box (can be used in place of a number block)
* 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 1: top of action 1 stack (Only available with Turtle Blocks)
* action 2: top of action 2 stack (Only available with Turtle Blocks)
* action: execute named action stack
* action: execute named action stack
* action 2: execute action 2 stack (Only available with Turtle Blocks)
* action 1: execute action 1 stack (Only available with Turtle Blocks)


'''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
* camera: grab image from 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 for media: used to pause program while audio or video file plays
* 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.
* sandwich clamp: "clamp" a stack of blocks to hide
* 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====