<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yamamucho</author_name>
  <author_url>https://blog.hatena.ne.jp/yamamucho/</author_url>
  <blog_title>酔いどれコード</blog_title>
  <blog_url>https://yamamucho.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>programming</anon>
  </categories>
  <description>今日は、コッホ曲線を描くプログラムを作ってみようと思います。理由は特にありません、思いつきです。はじめは曲がる点を求めるだけのプログラムを考えていましたが、どうせなら目に見えるようにしようと思い、描いたコッホ曲線を画像に出力する処理まで作成しました。画像の描画には cairo を使用しました。と。 require 'cairo' # # コッホ曲線の描画クラス # class KochCurve COS = Math.cos(Math::PI / 3) SIN = Math.sin(Math::PI / 3) #=== コンストラクタ # #_width_ :: 画像幅 #_height_ :…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamamucho.hatenadiary.org%2Fentry%2F20090620%2F1245480307&quot; title=&quot;Ruby練習二日目（コッホ曲線） - 酔いどれコード&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/y/yamamucho/20090620/20090620153031.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-06-20 15:45:07</published>
  <title>Ruby練習二日目（コッホ曲線）</title>
  <type>rich</type>
  <url>https://yamamucho.hatenadiary.org/entry/20090620/1245480307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
