<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gallu</author_name>
  <author_url>https://blog.hatena.ne.jp/gallu/</author_url>
  <blog_title>がるの健忘録</blog_title>
  <blog_url>https://gallu.hatenadiary.jp/</blog_url>
  <categories>
    <anon>その他技術</anon>
    <anon>PHP</anon>
  </categories>
  <description>いやまぁそも「無理だよねぇ」なのはおいといて。 普通の人は「CMYKの比率を見て大体の色合いを予想する」なんて器用な真似は不可能なので(苦笑 でも、なんでか(…由来とか考えりゃ当然なのですが)デザイン系の書籍には案外にCMYKで色が書かれているものが多々あるので。 かなり動かないですが、雑な物を作ってみました。 あらゆるエラーチェックを省略(笑)、かつ、「CMYKは０から１までの範囲、RGBは０から255までの範囲」であると固定しています。 $r = round((1 - min(1, $_POST['c']*(1-$_POST['k'])+$_POST['k']))*255); $g = r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgallu.hatenadiary.jp%2Fentry%2F20071218%2Fp1&quot; title=&quot;CMYKをRGBに置換してみる - がるの健忘録&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>2007-12-18 00:00:00</published>
  <title>CMYKをRGBに置換してみる</title>
  <type>rich</type>
  <url>https://gallu.hatenadiary.jp/entry/20071218/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
