define dance (speed) set [dist v] to ((speed) * (distance to [mouse-pointer v])) repeat until ((timer) > [10]) move (dist) steps wait (1) secs move (() – (dist)) steps play note (42 v) for (0.5) beats if <mouse down?> say [Whoops!] end end 上のScratchのブロックですが、実はこれ画像ではありません。 HTMLとCSSでレンダリングされています。 ScratchのWikiやフォーラムでScratchのブロックが表示可能 Block Pluginというのがあり、ScratchのWikiやフォーラムで記事を作成する時にテキストを書くだけで
![ScratchのブロックをWordPressの記事に表示するプラグインを作ったよ](https://cdn-ak-scissors.b.st-hatena.com/image/square/6f0005834db759e567c153378d5ba627d2f0ba4f/height=288;version=1;width=512/https%3A%2F%2Fcoderdojo-nishinomiya.info%2F2015_site%2Fwp-content%2Fuploads%2F2014%2F12%2Fscratchblocks_.png)