You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
“Center” means the center of the stage\index{center of the stage}, the
925
926
point at (0,0). “Direction” is in the point in direction sense, the
@@ -928,14 +929,16 @@ the mouse, or the center. “Ray length” is the distance from the center
928
929
of this sprite to the nearest point on the other sprite, in the current
929
930
direction.
930
931
931
-
{.image-2x}{.image-inline} <!-- {width=0.72in height=0.2in} --> The `stop` block\index{stop block} has two extra menu choices. `Stop this block` is used inside the definition of a custom block to stop just this
932
+
{.image-4x}
933
+
The `stop` block\index{stop block} has two extra menu choices. `Stop this block` is used inside the definition of a custom block to stop just this
932
934
invocation of this custom block and continue the script that called it.
933
935
`Stop all` but this script is good at the end of a game to stop all the
934
936
game pieces from moving around, but keep running this script to provide
935
937
the user’s final score. The last two menu choices add a tab at the
936
938
bottom of the block because the current script can continue after it.
937
939
938
-
{.image-inline} <!-- {width=0.72in height=0.2in} --> The new “pen trails” option is true if the sprite is touching any drawn
940
+
{.image-2x}
941
+
The new “pen trails” option is true if the sprite is touching any drawn
939
942
or stamped ink on the stage. Also, `touching`\index{touching block} will
940
943
not detect hidden sprites, but a hidden sprite can use it to detect
941
944
visible sprites.
@@ -944,18 +947,22 @@ visible sprites.
944
947
\index{video block} has a snap option\index{snap option} that takes a
945
948
snapshot and reports it as a costume. It is hyperized with respect to its second input.
946
949
947
-
{.image-inline} <!-- style="width:1.05972in;height:0.27986in" alt="Icon Description automatically generated" / --> The “neg” option\index{neg option} is a monadic\index{of block
{.image-inline} The “neg” option\index{neg option} is a monadic\index{of block
948
954
(operators)}\index{length of text block} negation operator
949
-
\index{negation operator}, equivalent to {.image-inline}. “lg” is log<sub>2</sub>.
955
+
\index{negation operator}, equivalent to “lg” is log<sub>2</sub>.
950
956
“id” is the identity function, which reports its input. “sign” reports 1
951
957
for positive input, 0 for zero input, or -1 for negative input.
952
958
\index{set background block}
959
+
:::
953
960
954
-
::: {.callout-tip}
955
-
## Two Different Length Of Blocks
961
+
<!--::: {.callout-tip}-->
962
+
<!--## Two Different Length Of Blocks-->
956
963
957
964
The {.image-inline} name was changed to clarify it is different from {.image-inline}
958
-
:::
965
+
<!--:::-->
959
966
960
967

961
968
@@ -980,7 +987,7 @@ Extended broadcast\index{broadcast block} : Click the right arrowhead to direct
980
987
:::
981
988
982
989
::: {.evenly-spaced-images layout-ncol=2}
983
-
{.image-2x}
990
+
{.image-4x}
984
991
985
992
Extended `when I receive`\index{when I receive block}: Click the right
986
993
arrowhead to expose a script variable (click on it to change its name,
@@ -995,14 +1002,14 @@ broadcast, or to a two-item list containing the message and the payload.
995
1002
{.image-2x}
996
1003
997
1004
If the input is set to “any key,” then a right arrowhead appears:
998
-
{.image-inline} and if you click it,
1005
+
{.image-inline-tall} and if you click it,
999
1006
a script variable key is created whose value is the key that was
1000
1007
pressed. (If the key is one that’ represented in the input menu by a
1001
1008
word or phrase, e.g., “enter” or “up arrow,” then the value of key
1002
1009
will be that word or phrase, *except for* the space character, which
1003
1010
is represented as itself in key.)
1004
1011
1005
-
{.image-2x} <!-- style="width:2.25in;height:0.41944in" alt="Website Description automatically generated with medium confidence" -->
1012
+
{.image-4x} <!-- style="width:2.25in;height:0.41944in" alt="Website Description automatically generated with medium confidence" -->
1006
1013
1007
1014
The RGB(A)\index{set pen block} option accepts a single number, which
1008
1015
is a grayscale value 0-255; a two-number list, grayscale plus opacity
@@ -1024,7 +1031,7 @@ library.
1024
1031

1025
1032
1026
1033
::: {.evenly-spaced-images layout-ncol=2}
1027
-
{.image-2x}
1034
+
{.image-4x}
1028
1035
1029
1036
The `of` block\index{of block (sensing)} has an extended menu of
1030
1037
attributes of a sprite. Position reports an (x,y) vector. Size reports
@@ -1074,7 +1081,7 @@ needs.
1074
1081
The libraries and their contents may change, but as of this writing the
1075
1082
list library\index{list library} has these blocks:
0 commit comments