{"published":"2017-01-13 23:18:32","type":"rich","author_name":"obelisk2","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/o/obelisk2/20170113/20170113231552.png","provider_url":"https://hatena.blog","width":"100%","categories":["Ruby","Linux","Gem 'oekaki'"],"provider_name":"Hatena Blog","blog_url":"https://obelisk.hatenablog.com/","url":"https://obelisk.hatenablog.com/entry/2017/01/13/231832","title":"GTK+\u3067\u843d\u66f8\u304d 3\uff08Ruby\uff09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F01%2F13%2F231832\" title=\"GTK+\u3067\u843d\u66f8\u304d 3\uff08Ruby\uff09 - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_url":"https://blog.hatena.ne.jp/obelisk2/","version":"1.0","description":"\u5468\u8ee2\u5186\u307f\u305f\u3044\u306a\u3002 \u30e9\u30a4\u30d6\u30e9\u30ea\u300cMyGtk\u300d\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3002 require_relative 'mygtk' include Math L = 400 R1 = 150; R2 = (L - R1 * 2) / 2 - 5 STP1 = (PI / 180) * 0.5; STP2 = (PI / 180) * 10 MyGtk.app width: L, height: L do draw do color(5000, 0, 10000) rectangle(true, 0, 0, L, L) end i = 0 id = timer(20) do x = L / 2 + (R1 * co\u2026","blog_title":"Camera Obscura"}