<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>TIPS</anon>
  </categories>
  <description>32ビットカラーを表現するのにunsigned intで0xff112233とすることがある。この値から各RGBAの値を取得するには、右ビットシフトした後、論理積ANDを取れば良い。 たとえば、ActionScript3では32ビットカラーの値は0xAARRGGBBというようにアルファ、赤、緑、青の順に並んでいる。ここから青の値を取るには0xffとANDを取る。緑は8ビットシフトさせてから。赤は16ビットシフトさせてから。アルファは24ビットシフトさせてからとなる。 var color:uint = 0xff112233; var alpha:uint = color &gt;&gt; 24 &amp; 0xff…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20100814%2F1281808715&quot; title=&quot;RGBAそれぞれの値を取得 - ゲームが作れるようになるまでがんばる日記&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-08-14 02:58:35</published>
  <title>RGBAそれぞれの値を取得</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20100814/1281808715</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
