{"blog_url":"https://mametter.hatenablog.com/","author_name":"ku-ma-me","width":"100%","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/ku-ma-me/","title":" perlin noise \u306e\u751f\u6210","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20091004%2Fp1\" title=\" perlin noise \u306e\u751f\u6210 - \u307e\u3081\u3081\u3082\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2009-10-04 00:00:00","image_url":"http://dame.dyndns.org/misc/misc/perlin1.png","blog_title":"\u307e\u3081\u3081\u3082","provider_name":"Hatena Blog","url":"https://mametter.hatenablog.com/entry/20091004/p1","description":"ref: wikipedia:\u30d1\u30fc\u30ea\u30f3\u30ce\u30a4\u30ba ref: Perlin NoiseCG \u696d\u754c\u3068\u304b\u3067\u6709\u540d\u306a\u3001\u306a\u3093\u304b\u96f2\u307f\u305f\u3044\u306a\u30ce\u30a4\u30ba\u306e\u3053\u3068\u3067\u3059\u3002\u53c2\u8003\u30b5\u30a4\u30c8\u306e\u64ec\u4f3c\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e Ruby \u306b\u79fb\u690d\u3057\u3066\u307f\u307e\u3057\u305f\u3002 # http://freespace.virgin.net/hugo.elias/models/m_perlin.htm class PerlinNoise def initialize(seed) @seed = seed end def noise(x, y) ([@seed, x, y].hash & 65535) / 65536.0 end def smooth_noise(x, y)\u2026","type":"rich","version":"1.0","height":"190","categories":["Ruby"]}