Activities/Turtle Art: Difference between revisions

Line 374: Line 374:
These are a collection of extra blocks for accessing advanced features only available in Turtle Blocks.
These are a collection of extra blocks for accessing advanced features only available in Turtle Blocks.


* query keyboard: check for keyboard input (results are stored in the keyboard block)
 
* push: push value onto FILO (first-in last-out) heap
* push: push value onto FILO (first-in last-out) heap
* show heap: show FILO in status block
* show heap: show FILO in status block
* keyboard: current value of keyboard input (can be used in place of a number block)
* pop: pop value off of the FILO (can be used in place of a number block)
* pop: pop value off of the FILO (can be used in place of a number block)
* empty heap: empty the FILO
* empty heap: empty the FILO
Line 393: Line 392:
* bottom of stack: block to denote the bottom of a collapsible stack
* bottom of stack: block to denote the bottom of a collapsible stack
:: To use the collapsible-stack blocks, place them around the blocks you want to hide
:: To use the collapsible-stack blocks, place them around the blocks you want to hide
* read pixel: push the RGB value of the pixel under the turtle onto the FILO (blue is first, red is last)
* turtle sees: the "palette color" of the pixel under the turtle
* 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.