<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FColorMatrices</id>
		<title>Legacy:Functions/ColorMatrices - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FColorMatrices"/>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/ColorMatrices&amp;action=history"/>
		<updated>2026-05-10T11:53:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Functions/ColorMatrices&amp;diff=484&amp;oldid=prev</id>
		<title>Apollolux: created</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/ColorMatrices&amp;diff=484&amp;oldid=prev"/>
				<updated>2013-05-22T17:35:39Z</updated>
		
		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Color matrices ==&lt;br /&gt;
&lt;br /&gt;
* Sphere [[API:ColorMatrix|ColorMatrix]] object used to transform colors&lt;br /&gt;
* [[API:CreateColorMatrix|CreateColorMatrix]](rn, rr, rg, rb,  gn, gr, gg, gb,  bn, br, bg, bb): Creates a [[API:ColorMatrix|ColorMatrix]] that is used to transform the colors contained in a pixel with the following formula:&lt;br /&gt;
*:	newcolor.red   = rn + (rr * oldcolor.red + rg * oldcolor.green + rb * oldcolor.blue) / 255;&lt;br /&gt;
*:	newcolor.green = gn + (gr * oldcolor.red + gg * oldcolor.green + gb * oldcolor.blue) / 255;&lt;br /&gt;
*:	newcolor.blue  = bn + (br * oldcolor.red + bg * oldcolor.green + bb * oldcolor.blue) / 255;&lt;br /&gt;
&lt;br /&gt;
(see [[API:Surface/applyColorFX|Surface.applyColorFX]] and [[API:Surface/applyColorFX4|Surface.applyColorFX4]])&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>	</entry>

	</feed>