{"description":"\u524d\u8a18\u4e8b\u306e Ruby/GTK+ \u7528\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3001\u30d2\u30eb\u30d9\u30eb\u30c8\u66f2\u7dda\u3092\u63cf\u3044\u3066\u307f\u307e\u3057\u305f\u3002Ruby/Tk \u7248\uff08\u53c2\u7167\uff09\u3068\u6b86\u3069\u540c\u3058\u3067\u3059\u3002 require './mygtk' class Draw def initialize(n, slot) @lgth = Width / 2 ** n @y = (Width - @lgth * (2 ** n - 1)) / 2 #\u898b\u6804\u3048\u3092\u6574\u3048\u3066\u3044\u308b\u3060\u3051\u3067\u3001\u7279\u306b\u610f\u5473\u306e\u306a\u3044\u8a08\u7b97 @x = Width - @y @oldx, @oldy = @x, @y @slot = slot end def ldr(n) return if n == 0 dlu(n - 1); \u2026","blog_title":"Camera Obscura","height":"190","provider_url":"https://hatena.blog","width":"100%","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2016%2F12%2F15%2F201534\" title=\"GTK+\u3067\u30d2\u30eb\u30d9\u30eb\u30c8\u66f2\u7dda\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>","type":"rich","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/o/obelisk2/20161215/20161215201358.png","url":"https://obelisk.hatenablog.com/entry/2016/12/15/201534","author_name":"obelisk2","author_url":"https://blog.hatena.ne.jp/obelisk2/","blog_url":"https://obelisk.hatenablog.com/","title":"GTK+\u3067\u30d2\u30eb\u30d9\u30eb\u30c8\u66f2\u7dda\uff08Ruby\uff09","published":"2016-12-15 20:15:34","categories":["Ruby","\u6570\u5b66","Gem 'oekaki'"]}