<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aidiary</author_name>
  <author_url>https://blog.hatena.ne.jp/aidiary/</author_url>
  <blog_title>人工知能に関する断創録</blog_title>
  <blog_url>https://aidiary.hatenablog.com/</blog_url>
  <categories>
    <anon>Javagame</anon>
  </categories>
  <description>paintComponent()の引数であるGraphicsオブジェクトgを使うと直線、図形、文字、イメージをパネルに描けます。今回は、gを使ってさまざまな図形を描いてみます。draw_figure.jar 座標系 Javaの座標系は数学で使う座標系と異なり、左上が(0,0)になります。x座標は右に行くほど大きくなり、y座標は下に行くほど大きくなります（下図参照）。また、座標はピクセル単位であるため整数値しか取れません。数学が得意な人は慣れるまで大変かも・・・。 色の指定 色は赤(R)、緑(G)、青(B)の3つの成分の組み合わせで表されます。それぞれの成分は8ビット（0〜255の整数値）です。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faidiary.hatenablog.com%2Fentry%2F20040918%2F1251376865&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/a/aidiary/20090827/20090827214807.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2004-09-18 21:41:05</published>
  <title> 図形を描く</title>
  <type>rich</type>
  <url>https://aidiary.hatenablog.com/entry/20040918/1251376865</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
