{"width":"100%","provider_name":"Hatena Blog","description":"def sphere(s) image = make2d(s,s) for y in 0..(s-1) for x in 0..(s-1) image[y][x] = b(s,x,y) end end image end def sphere(s) Array.new(s) { |y| Array.new(s) { |x| b(s,x,y) } } end \u672c\u79d1\u76ee\u3067\u7528\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f8b\uff08\u4e0a\uff09\uff0e2\u6b21\u5143\u914d\u5217\u3092\u4f5c\u308b\u95a2\u6570make2d\u306f\u3042\u3089\u304b\u3058\u3081\u4e0e\u3048\u3066\u3044\u308b\uff0e\u95a2\u6570b\u306f\u5225\u306b\u5b9a\u7fa9\u3057\u3066\u3044\u308b\uff0e\u3053\u308c\u3092Ruby\u8a00\u8a9e\u306e\u719f\u9054\u8005\u306b\u898b\u305b\u308b\u3068\u300cfor\u6587\u306f\u307b\u3068\u3093\u3069\u4f7f\u308f\u305a\uff0c\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u300d\u3068\u8a00\u308f\u308c\u308b\uff0e (\u60c5\u5831\u51e6\u7406, Vol.51,\u2026","version":"1.0","url":"https://takehikom.hateblo.jp/entry/20101226/1293310800","blog_title":"\u308f\u3055\u3063\u304dhb","height":"190","blog_url":"https://takehikom.hateblo.jp/","categories":["Ruby"],"image_url":null,"published":"2010-12-26 06:00:00","provider_url":"https://hatena.blog","author_name":"takehikom","author_url":"https://blog.hatena.ne.jp/takehikom/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakehikom.hateblo.jp%2Fentry%2F20101226%2F1293310800\" title=\" \u719f\u9054\u8005\u306e\u66f8\u304f\u30b3\u30fc\u30c9 - \u308f\u3055\u3063\u304dhb\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" \u719f\u9054\u8005\u306e\u66f8\u304f\u30b3\u30fc\u30c9","type":"rich"}