<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mjmania</author_name>
  <author_url>https://blog.hatena.ne.jp/mjmania/</author_url>
  <blog_title>のんびり読書日記</blog_title>
  <blog_url>https://fujimizu.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
  </categories>
  <description>アルゴリズムC++を読んでいて、再帰の章でフラクタルが載ってたので、Python + PILで実際に図形を書いてみた。 全部同じ色 階層毎に色分け #!/usr/bin/env python # -*- coding:utf-8 -*- import Image import ImageDraw def fractal(draw, x, y, r): if (x &gt;= 0 and y &gt;= 0 and r &gt; 0): fractal(draw, x-r/2, y-r/2, r/2); fractal(draw, x-r/2, y+r/2, r/2); fractal(draw, x+r/2, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffujimizu.hatenablog.com%2Fentry%2F20090420%2F1240156477&quot; title=&quot; フラクタルを書いてみる - のんびり読書日記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/m/mjmania/20090420/20090420004858.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-04-20 00:54:37</published>
  <title> フラクタルを書いてみる</title>
  <type>rich</type>
  <url>https://fujimizu.hatenablog.com/entry/20090420/1240156477</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
