【Google Blocklyを使って遊ぼう】blocklylib-coreのブロック
variable_blocks.jsonのブロック
| type | 説明 |
|---|---|
| variables_set | 変数を定義し、変数に値を設定します |
| variables_get | 指定した変数名の値を取得します |
text_blocks.json のブロック
| type | 説明 |
|---|---|
| text | 文字列を出力します |
| text_append | 変数の値に文字列を追加します |
| text_length | 文字列、配列の長さを取得します |
| text_isEmpty | 文字列、配列に要素の有無を取得します |
| text_indexOf | 指定した文字列の中から指定した別の文字列が最初に現れる位置を取得します |
| text_charAt | 指定した文字列の中から指定した位置の文字を取得します |
| text_getSubstring | 指定した文字列の中から開始位置と終了位置を指定して文字列を切り出します |
| text_changeCase | 文字列の大文字小文字を変更します |
| text_trim | 文字列から空白を除去します |
| text_print | ダイアログを表示します |
| text_prompt_ext | 入力ダイアログを表示します |
math_blocks.jsonのブロック
| type | 説明 |
|---|---|
| math_number | |
| math_number_hundredths | |
| math_arithmetic | |
| math_single | |
| math_trig | |
| math_constant | |
| math_number_property | |
| math_change | |
| math_round | |
| math_modulo | |
| math_constrain | |
| math_random_int | |
| math_random_float |
logic_blocks.jsonのブロック
| type | 説明 |
|---|---|
| controls_if | |
| controls_ifelse | |
| logic_compare | |
| logic_operation | |
| logic_negate | |
| logic_boolean | |
| logic_null | |
| logic_ternary |
list_blocks.jsonのブロック
| type | 説明 |
|---|---|
| lists_create_empty | |
| lists_repeat | |
| lists_length | |
| lists_isEmpty | |
| lists_indexOf | |
| lists_getIndex | |
| lists_setIndex | |
| lists_getSublist | |
| lists_sort |
loop_blocks.jsonのブロック
| type | 説明 |
|---|---|
| controls_repeat_ext | |
| controls_whileUntil | |
| controls_for | |
| controls_forEach | |
| controls_flow_statements |
colour_blocks.jsonのブロック
| type | 説明 |
|---|---|
| colour_picker | |
| colour_random | |
| colour_rgb | |
| colour_blend |