Changes

Jump to navigation Jump to search
m
no edit summary
Line 215: Line 215:  
* accelerate (not shown): measure the acceleration of the computer. Results are pushed to the stack and can be retrieved by using 3 'pop' blocks (one for X (horizontal), one for Y (vertical), and one for Z (forward/backward))
 
* accelerate (not shown): measure the acceleration of the computer. Results are pushed to the stack and can be retrieved by using 3 'pop' blocks (one for X (horizontal), one for Y (vertical), and one for Z (forward/backward))
   −
See [[Activities/TurtleArt/Using Turtle Art Sensors]] for more details about the sensor blocks.
+
See [[Activities/Turtle Art/Using Turtle Art Sensors]] for more details about the sensor blocks.
   −
([[Activities/TurtleArt/Uso_de_TortugaArte_Sensores]] español)
+
([[Activities/Turtle Art/Uso_de_TortugaArte_Sensores]] español)
    
====Media Palette====
 
====Media Palette====
Line 254: Line 254:  
* chr: Python chr primitive: converts ASCII to character (useful for converting keyboard input to text)
 
* chr: Python chr primitive: converts ASCII to character (useful for converting keyboard input to text)
 
* int: Python int primitive: converts input to integers
 
* int: Python int primitive: converts input to integers
* Python: a [[Activities/TurtleArt-0.88#Python_function_block|programmable block]] (can be used in place of a number block)
+
* Python: a [[Activities/Turtle Art-0.88#Python_function_block|programmable block]] (can be used in place of a number block)
 
:: add your own math equation in the block, e.g., sin(x); This block is expandable to support up to three variables, e.g. f(x,y,z)
 
:: add your own math equation in the block, e.g., sin(x); This block is expandable to support up to three variables, e.g. f(x,y,z)
* Import Python: [[Activities/TurtleArt-0.88#Python_code_block|import Python code]] from the Sugar Journal (a more general-purpose programmable block). This block accepts a single variable x, as an input or up to 3 variables as an array x[0], x[1] and x[2]
+
* Import Python: [[Activities/Turtle Art-0.88#Python_code_block|import Python code]] from the Sugar Journal (a more general-purpose programmable block). This block accepts a single variable x, as an input or up to 3 variables as an array x[0], x[1] and x[2]
 
* Cartesian: display Cartesian coordinate grid overlay
 
* Cartesian: display Cartesian coordinate grid overlay
 
* polar: display polar coordinate grid overlay
 
* polar: display polar coordinate grid overlay

Navigation menu