<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonota88</author_name>
  <author_url>https://blog.hatena.ne.jp/sonota88/</author_url>
  <blog_title>memo486</blog_title>
  <blog_url>https://memo88.hatenablog.com/</blog_url>
  <categories>
    <anon>kairo-gokko</anon>
  </categories>
  <description>目次ページに戻る / 前 / 次 次はもうちょっと複雑なパターンを……と思いましたが、 その前にエッジ 1本の通電判定処理だけ作ってみることにします。 動くものができるとモチベーションも上がるでしょう。 クリックでスイッチだけ状態を更新 スイッチの状態に応じてエッジの通電状態を更新 の2段階に分けて実装します。 スイッチの状態を更新 マウスでスイッチ（の位置）をクリックしたことを検出して Switch#toggle() で状態をトグルするようにしました。 --- a/main.rb +++ b/main.rb @@ -42,7 +42,15 @@ Window.load_resources d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F2020%2F02%2F29%2F150919&quot; title=&quot;kairo-gokko (12-2) 通電 2 - memo486&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/sonota88/20200229/20200229133435.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-29 15:09:19</published>
  <title>kairo-gokko (12-2) 通電 2</title>
  <type>rich</type>
  <url>https://memo88.hatenablog.com/entry/2020/02/29/150919</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
