Activities/Turtle Art-0.86: Difference between revisions

Line 128: Line 128:


====descriptions====
====descriptions====
*Values (can plug into a parameter)
**Number (constant)
**Infix operators(left,right)
*** +, –, *, /, mod
**Random(min, max)  (constants or boxes only)
*Conditions (oval, plugs into an If blocks on the Flow Palette)
** <, >, = (takes two constants or boxes)
** and, or, not (takes other conditions)
*Print(number) - Debugging output. When in full-screen mode ('''Alt-Enter'''), show a numeric value at the bottom of the screen.
{|
{|
|-
|-
|[[Image:TA-number.svg]]||number||
|[[Image:TA-number.svg]]||number||used as numeric input in mathematic operators
|-
|-
|[[Image:TAplus.svg]]||addition||adds two numeric inputs
|[[Image:TAplus.svg]]||addition||adds two numeric inputs
Line 150: Line 140:
|[[Image:TAdivision.svg]]||division||divides top numeric input (numerator) by bottom numeric input (denominator)
|[[Image:TAdivision.svg]]||division||divides top numeric input (numerator) by bottom numeric input (denominator)
|-
|-
|[[Image:TA-mod.svg]]||mod||
|[[Image:TA-mod.svg]]||mod||modular (remainder) operator
|-
|-
|[[Image:TA-left-bracket.svg]][[Image:TA-right-bracket.svg]]||numeric extensions||identity operators used for extending blocks
|[[Image:TA-left-bracket.svg]][[Image:TA-right-bracket.svg]]||numeric extensions||identity operators used for extending blocks
|-
|-
|[[Image:TA-sqrt.svg]]||square root||
|[[Image:TA-sqrt.svg]]||square root||calculate square root
|-
|-
|[[Image:TA-random.png]]||random||
|[[Image:TA-random.png]]||random||returns random number between minimum (left) and maximum (right) values
|-
|-
|[[Image:TA-equal.png]]||equal?||
|[[Image:TA-equal.png]]||equal?|| logical = operator (plugs into an If blocks on the Flow Palette)
|-
|-
|[[Image:TA-greater.png]]||greater?||
|[[Image:TA-greater.png]]||greater?|| logical > operator (plugs into an If blocks on the Flow Palette)
|-
|-
|[[Image:TA-less.png]]||less?||
|[[Image:TA-less.png]]||less?|| logical < operator (plugs into an If blocks on the Flow Palette)
|-
|-
|[[Image:TA-and.svg]]||and||
|[[Image:TA-and.svg]]||and|| logical ⋀ (and) operator (links conditional)
|-
|-
|[[Image:TA-or.svg]]||or||
|[[Image:TA-or.svg]]||or|| logical ⋁ (or) operator (links conditional)
|-
|-
|[[Image:TA-not.svg]]||not||
|[[Image:TA-not.svg]]||not|| logical ¬ (not) operator (links conditional)
|-
|-
|[[Image:TA-print.svg]]||print||
|[[Image:TA-print.svg]]||print|| Prints value in status block at bottom of the screen
|}
|}