<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>stetho:scope &#187; RGB</title>
	<atom:link href="http://blog.stetho.co.uk/tag/rgb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stetho.co.uk</link>
	<description>I have my uses</description>
	<lastBuildDate>Mon, 07 Jun 2010 20:06:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AppleScript to convert CMYK to RGB values</title>
		<link>http://blog.stetho.co.uk/2008/06/12/applescript-to-convert-cmyk-to-rgb-values/</link>
		<comments>http://blog.stetho.co.uk/2008/06/12/applescript-to-convert-cmyk-to-rgb-values/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 21:29:17 +0000</pubDate>
		<dc:creator>stetho</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[CMYK]]></category>
		<category><![CDATA[RGB]]></category>

		<guid isPermaLink="false">http://blog.stetho.co.uk/?p=3</guid>
		<description><![CDATA[A couple of days ago someone asked me if I knew how to convert CMYK to RGB using AppleScript. After boring them silly with my explanation of colour models and explaining that it&#8217;s not really possible, I came up with this which is a close approximation and finally gives me something to put on my [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago someone asked me if I knew how to convert CMYK to RGB using AppleScript. After boring them silly with my explanation of colour models and explaining that it&#8217;s not really possible, I came up with this which is a close approximation<em> and</em> finally gives me something to put on my blog.</p>
<pre>on cmykrgb(c, m, y, k)

    set r to 255 - (round (2.55 * (c + k)))
    set g to 255 - (round (2.55 * (m + k)))
    set b to 255 - (round (2.55 * (y + k)))

    if (r &lt; 0) then set r to 0
    if (g &lt; 0) then set g to 0
    if (b &lt; 0) then set b to 0

    return {r, g, b}
end cmykrgb</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.stetho.co.uk/2008/06/12/applescript-to-convert-cmyk-to-rgb-values/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
