<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>llcc</author_name>
  <author_url>https://blog.hatena.ne.jp/llcc/</author_url>
  <blog_title>しめ鯖日記</blog_title>
  <blog_url>https://llcc.hatenablog.com/</blog_url>
  <categories>
    <anon>その他</anon>
  </categories>
  <description>下のように書きます。 nodeを生成してそれのdrawPolygonを呼びます。 local node = cc.DrawNode:create() local points = { cc.p(0, 0), cc.p(20, 0), cc.p(20, 20), cc.p(0, 20) } local color = cc.c4b(51, 51, 51, 1) node:drawPolygon(points, table.getn(points), color, 4, color) 注意点として、四角はレンダリングされますがnodeのサイズは0x0になります。 サイズを設定するには下のようにse…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fllcc.hatenablog.com%2Fentry%2F2015%2F06%2F25%2F233211&quot; title=&quot;Cocos2d-luaで四角を記述する方法 - しめ鯖日記&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>2015-06-25 23:32:11</published>
  <title>Cocos2d-luaで四角を記述する方法</title>
  <type>rich</type>
  <url>https://llcc.hatenablog.com/entry/2015/06/25/233211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
