LoginSignup
0
0

More than 1 year has passed since last update.

Blockly - サンプルの実行

Last updated at Posted at 2022-10-29

Googleが開発したブロック言語のBlocklyを試します。
最終的には、rosとのコラボ方法まで記載できたら嬉しいです。
まず、本記事ではBlocklyのサンプルの実行方法について記載します。

(環境: ubuntu 20.40)

まず、プログラムをローカルにダウンロードします。
そしてpythonのhttp.serverを使用してサーバーを立てます。

git clone https://github.com/google/blockly.git
cd blockly
python3 -m http.server

サーバー起動後,デモはdemosディレクトリにアクセスすると開くことができます。

すると以下のようにBlocklyエディタが表示されました。

Screenshot from 2022-10-29 15-06-36.png

printしてみると次のように(実行は右上の赤→ボタンから)

Screenshot from 2022-10-29 15-13-41.png

以上

次回以降,オリジナル関数の作成方法や自身のウェブページへの統合方法について記載したいと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0