<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
    <anon>Processing</anon>
  </categories>
  <description>塗りつぶしといえばスキャンライン。名前は知っていても作ったことはありませんでした。たまたま塗り絵アプリを作ろうとしている学生さんがいましたので、参考まで実装してみました。ちなみに、彼らはUnityで実装しているわけですが。アルゴリズムの説明はぐぐって調べると以下が見つかりました。絵付きの説明が非常にわかりやすい感じです。 ペイント・ルーチン (1)シード・フィル アルゴリズム fussy.web.fc2.com ただ、コードをそのまま実装するのは面倒そうだったので、以下の説明部分だけ参考にさせていもらいました。ありがとうございます。 さて、コードはこんな感じになりました。アルゴリズムはシンプル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F2021%2F11%2F14%2F103312&quot; title=&quot;塗りつぶしアルゴリズムをp5.jsで実装してみた - memorandums&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/k/ke_takahashi/20230104/20230104165605.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-11-14 10:33:12</published>
  <title>塗りつぶしアルゴリズムをp5.jsで実装してみた</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/2021/11/14/103312</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
