Add math_atan2 block to demos and playgrounds

This commit is contained in:
Nadya Febiana Djojosantoso
2018-10-11 14:56:13 -07:00
parent d3deeedc02
commit d822efa322
8 changed files with 75 additions and 0 deletions

View File

@@ -200,6 +200,18 @@
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2">
<value name="X">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="%{BKY_CATTEXT}" colour="%{BKY_TEXTS_HUE}">
<block type="text"></block>

View File

@@ -145,6 +145,18 @@
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2">
<value name="X">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="Variables" colour="%{BKY_VARIABLES_HUE}">
<block type="graph_get_x"></block>

View File

@@ -117,6 +117,7 @@
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2"></block>
</category>
<category name="نص" colour="%{BKY_TEXTS_HUE}">
<block type="text"></block>

View File

@@ -114,6 +114,7 @@
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2"></block>
</category>
<category name="Lists" colour="%{BKY_LISTS_HUE}">
<block type="lists_create_empty"></block>

View File

@@ -320,6 +320,7 @@ h1 {
<block type="math_constrain"></block>
<block type="math_random_int"></block>
<block type="math_random_float"></block>
<block type="math_atan2"></block>
</category>
<category name="Text" colour="160">
<block type="text"></block>

View File

@@ -289,6 +289,18 @@ h1 {
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2">
<value name="X">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="Text" colour="%{BKY_TEXTS_HUE}">
<block type="text"></block>

View File

@@ -519,6 +519,18 @@ h1 {
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2">
<value name="X">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="Text" colour="%{BKY_TEXTS_HUE}">
<block type="text"></block>
@@ -848,6 +860,18 @@ h1 {
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2">
<value name="X">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="Text" colour="%{BKY_TEXTS_HUE}">
<block type="text"></block>

View File

@@ -202,6 +202,18 @@ h1 {
</value>
</block>
<block type="math_random_float"></block>
<block type="math_atan2">
<value name="X">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="Text" colour="160">
<block type="text"></block>