<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>techty</author_name>
  <author_url>https://blog.hatena.ne.jp/techty/</author_url>
  <blog_title>techtyの日記</blog_title>
  <blog_url>https://techty.hatenablog.com/</blog_url>
  <categories>
    <anon>p5.js</anon>
    <anon>作品</anon>
    <anon>Generative Art</anon>
  </categories>
  <description>p5.jsを使って「オーロラ」を描くプログラムを作ってみました。 黒い影が「山」、白い点が「星」、緑と紫の線が「オーロラ」を表現しています。 デモページとソースコードは以下にあります。 よかったら見てみてください。 editor.p5js.org 上記のようなオーロラを描く仕組みは単純です。 １．黒色のキャンバスを用意する ２．山のラインを決める ３．山のラインより上の部分を紫色で塗る ４．紫色で塗った部分を緑色で上塗りする ５．白い点をランダムに配置する これだけです。 山のラインを決めるときには「パーリンノイズ」という手法を使っています。 パーリンノイズとは簡単に言うと「なめらかな乱数生成…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechty.hatenablog.com%2Fentry%2F2019%2F05%2F27%2F151415&quot; title=&quot;p5.js　オーロラ - techtyの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/techty/20190527/20190527131053.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-27 15:14:15</published>
  <title>p5.js　オーロラ</title>
  <type>rich</type>
  <url>https://techty.hatenablog.com/entry/2019/05/27/151415</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
