<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gct</author_name>
  <author_url>https://blog.hatena.ne.jp/gct/</author_url>
  <blog_title>つまみぐいメモ</blog_title>
  <blog_url>https://gct.hatenadiary.org/</blog_url>
  <categories>
    <anon>html5</anon>
    <anon>canvas</anon>
  </categories>
  <description>面倒かどうかだけで、優劣とかとは別の話。間違い・勘違いがあるかもしれません。 動的な色の指定が面倒くさい context.fillStyle = 'rgba(255,255,255,' + alpha + ')'; context.strokeStyle = 'rgb(' + v + ',' + v + ',' + v + ')'; 文字列連結とかきれいじゃないように感じる。素直に関数なりライブラリなりを使えばいいのだけれども、書き捨てコードでは面倒くさい。 楕円が描けない arcでは正円しか描けない。 scale(1,2)とかで楕円っぽくなるけれども、strokeの場合は線の太さも変わってし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgct.hatenadiary.org%2Fentry%2F20101007%2F1286432586&quot; title=&quot;canvas要素の面倒なところ - つまみぐいメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-10-07 15:23:06</published>
  <title>canvas要素の面倒なところ</title>
  <type>rich</type>
  <url>https://gct.hatenadiary.org/entry/20101007/1286432586</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
