<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takehikom</author_name>
  <author_url>https://blog.hatena.ne.jp/takehikom/</author_url>
  <blog_title>わさっきhb</blog_title>
  <blog_url>https://takehikom.hateblo.jp/</blog_url>
  <categories>
    <anon>computing</anon>
  </categories>
  <description>いきなりですが問題です． HTML5のCanvasとJavaScriptを用いて，マウスドラッグの始点と終点を結ぶ線を直径とする円を描くページ（HTMLファイル）を作成しなさい． 授業の課題をアレンジしておりますので，解答となるHTMLファイルについては，公開を差し控えます． かわりに考え方を書きます．まず適当なサイズのCanvas領域を作ってから，始点と終点の座標を獲得します．目標は，円の描画ですが，まずは2点を結ぶ線分を描くことができます． この線分を直径とするのなら，円の中心は，線分の中点です．2点のX座標の平均，Y座標の平均により，中心の座標が求められます． 円の半径は，線分の長さの半…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakehikom.hateblo.jp%2Fentry%2F20180129%2F1517170711&quot; title=&quot; 直径，半径，円描画 - わさっきhb&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/t/takehikom/20180129/20180129051426.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-29 05:18:31</published>
  <title> 直径，半径，円描画</title>
  <type>rich</type>
  <url>https://takehikom.hateblo.jp/entry/20180129/1517170711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
