<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Accelerating color gradients</title>
	<atom:link href="http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/feed/" rel="self" type="application/rss+xml" />
	<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Dec 2012 14:19:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: kdepepo</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-178</link>
		<dc:creator><![CDATA[kdepepo]]></dc:creator>
		<pubDate>Wed, 05 May 2010 14:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-178</guid>
		<description><![CDATA[@Alex, the code is in KDE svn :) It basically goes like this (not tested):

QImage image(2, 2); // 4-point gradient
image.setPixel(0, 0, QColor(Qt::black).rgb());
image.setPixel(0, 1, QColor(Qt::green).rgb());
image.setPixel(1, 0, QColor(Qt::red).rgb());
image.setPixel(1, 1, QColor(Qt::yellow).rgb());

QRect destRect(0, 0, 200, 200);
painter.setRenderHint(QPainter::SmoothPixmapTransforms, true);
painter.drawImage(destRect, image, QRectF(0.5, 0.5, 1, 1));]]></description>
		<content:encoded><![CDATA[<p>@Alex, the code is in KDE svn <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It basically goes like this (not tested):</p>
<p>QImage image(2, 2); // 4-point gradient<br />
image.setPixel(0, 0, QColor(Qt::black).rgb());<br />
image.setPixel(0, 1, QColor(Qt::green).rgb());<br />
image.setPixel(1, 0, QColor(Qt::red).rgb());<br />
image.setPixel(1, 1, QColor(Qt::yellow).rgb());</p>
<p>QRect destRect(0, 0, 200, 200);<br />
painter.setRenderHint(QPainter::SmoothPixmapTransforms, true);<br />
painter.drawImage(destRect, image, QRectF(0.5, 0.5, 1, 1));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-176</link>
		<dc:creator><![CDATA[Johannes]]></dc:creator>
		<pubDate>Wed, 05 May 2010 05:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-176</guid>
		<description><![CDATA[@kdepepo: Your right! Sorry I sometimes write before I think. :-)]]></description>
		<content:encoded><![CDATA[<p>@kdepepo: Your right! Sorry I sometimes write before I think. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-175</link>
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 05 May 2010 05:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-175</guid>
		<description><![CDATA[For those of us slowpokes :) d&#039;you mind sharing a piece of code?]]></description>
		<content:encoded><![CDATA[<p>For those of us slowpokes <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  d&#8217;you mind sharing a piece of code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kdepepo</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-172</link>
		<dc:creator><![CDATA[kdepepo]]></dc:creator>
		<pubDate>Tue, 04 May 2010 19:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-172</guid>
		<description><![CDATA[@Johannes, if you do a linear blend between red and green, you do not get a full yellow, but something darker:
http://www.herethere.net/~samson/php/color_gradient/?cbegin=FF0000&amp;cend=00FF00&amp;steps=4]]></description>
		<content:encoded><![CDATA[<p>@Johannes, if you do a linear blend between red and green, you do not get a full yellow, but something darker:<br />
<a href="http://www.herethere.net/~samson/php/color_gradient/?cbegin=FF0000&#038;cend=00FF00&#038;steps=4" rel="nofollow">http://www.herethere.net/~samson/php/color_gradient/?cbegin=FF0000&#038;cend=00FF00&#038;steps=4</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-171</link>
		<dc:creator><![CDATA[Johannes]]></dc:creator>
		<pubDate>Tue, 04 May 2010 16:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-171</guid>
		<description><![CDATA[Why is the image 7x2 and not 4x2 (red,green,blue,red)?]]></description>
		<content:encoded><![CDATA[<p>Why is the image 7&#215;2 and not 4&#215;2 (red,green,blue,red)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kdepepo</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-168</link>
		<dc:creator><![CDATA[kdepepo]]></dc:creator>
		<pubDate>Tue, 04 May 2010 10:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-168</guid>
		<description><![CDATA[@Heller, the gradient changes depending on the value in the slider next to it, so you would have to store 256 images (actually 1536, because there are 6 &quot;modes&quot; the gradient can be in).]]></description>
		<content:encoded><![CDATA[<p>@Heller, the gradient changes depending on the value in the slider next to it, so you would have to store 256 images (actually 1536, because there are 6 &#8220;modes&#8221; the gradient can be in).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heller</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-167</link>
		<dc:creator><![CDATA[Heller]]></dc:creator>
		<pubDate>Tue, 04 May 2010 07:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-167</guid>
		<description><![CDATA[This may be obvious to you but why it is not possible to use a simple png to display this gradient ?]]></description>
		<content:encoded><![CDATA[<p>This may be obvious to you but why it is not possible to use a simple png to display this gradient ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://kdepepo.wordpress.com/2010/05/03/accelerating-color-gradients/#comment-163</link>
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 03 May 2010 22:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://kdepepo.wordpress.com/?p=190#comment-163</guid>
		<description><![CDATA[Clever!]]></description>
		<content:encoded><![CDATA[<p>Clever!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
