{"url":"https://obelisk.hatenablog.com/entry/2019/03/08/181533","categories":["Ruby"],"provider_url":"https://hatena.blog","height":"190","description":"Ruby \u3067\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u8868\u793a\u306e\u3067\u304d\u308b Gem 'Ruby 2D' \u3067\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u3002\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u4e09\u89d2\u304c\u4e38\u305f\u3061\u306e\u4e0a\u306b\u3042\u308a\u307e\u3059\u3002\u8272\u306f\u534a\u900f\u660e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3002 ruby2d_sample2.rb require 'ruby2d' Width = 500 C = 15 #\u5186\u306e\u6570 R = 20 #\u5186\u306e\u534a\u5f84 L = 150 #\u4e09\u89d2\u5f62\u306e\u4e00\u8fba\u306e\u9577\u3055 set width: Width, height: Width circles = C.times.map { Circle.new x: rand(R..Width - R), y: rand(R..Width - R), radius:\u2026","published":"2019-03-08 18:15:33","title":"Gem 'Ruby 2D' \u3067\u904a\u3076\uff081\uff09","provider_name":"Hatena Blog","blog_url":"https://obelisk.hatenablog.com/","author_name":"obelisk2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2019%2F03%2F08%2F181533\" title=\"Gem &#39;Ruby 2D&#39; \u3067\u904a\u3076\uff081\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>","author_url":"https://blog.hatena.ne.jp/obelisk2/","version":"1.0","blog_title":"Camera Obscura","width":"100%","type":"rich","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/o/obelisk2/20190308/20190308180919.gif"}