<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>ja.wikipedia.org「ブレゼンハムのアルゴリズム」とは画面に線分を描くアルゴリズムです。コードはここの Java 版を移植させていただきました。Ruby コードです。描画に Cairo を使っています。 require &quot;cairo&quot; class Draw W = 400 Side = 10 def initialize @surface = Cairo::ImageSurface.new(W, W) @context = Cairo::Context.new(@surface) #背景色 @context.set_source_color(Cairo::Color::BLACK)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2020%2F01%2F23%2F005145&quot; title=&quot;ブレゼンハムのアルゴリズム（Ruby） - Camera Obscura&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/o/obelisk2/20200123/20200123005112.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-23 00:51:45</published>
  <title>ブレゼンハムのアルゴリズム（Ruby）</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2020/01/23/005145</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
