<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>colormatrix &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/colormatrix/</link>
	<description>Feed of posts on WordPress.com tagged "colormatrix"</description>
	<pubDate>Mon, 28 Dec 2009 05:07:14 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Niko Kiirala on Filters: Tutorial Two - Color Matrix]]></title>
<link>http://inkscapetutorials.wordpress.com/2008/07/04/niko-kiirala-on-filters-tutorial-one-color-matrix/</link>
<pubDate>Fri, 04 Jul 2008 00:00:25 +0000</pubDate>
<dc:creator>ryanlerch</dc:creator>
<guid>http://inkscapetutorials.wordpress.com/2008/07/04/niko-kiirala-on-filters-tutorial-one-color-matrix/</guid>
<description><![CDATA[Here is the second tutorial in Niko&#8217;s Inkscape Filter Effects series. Today&#8217;s tutorial f]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Here is the second tutorial in Niko&#8217;s Inkscape Filter Effects series. Today&#8217;s tutorial focuses on the color matrix filter. The quote below (taken from the tutorial) best sums it up&#8230;</p>
<blockquote><p>Color Matrix is an interesting filter, that can mix up the colours in your image in many ways. Blanc and white images, sepia toning, hue rotation and removing one of the basic colours from image are a couple examples, what kind of modifications this filter can do.</p></blockquote>
<p><img class="aligncenter size-full wp-image-213" src="http://inkscapetutorials.wordpress.com/files/2008/07/color_matrix_red_calculation.png" alt="" width="267" height="238" /></p>
<p><!--more--></p>
<p style="text-align:center;"><a href="http://fedev.blogspot.com/2008/04/filter-effects-color-matrix.html"><img src="http://inkscapetutorials.files.wordpress.com/2008/03/button.png?w=182&#038;h=47#38;h=47&#38;h=47" alt="" width="182" height="47" /></a></p>
<p><img class="aligncenter size-full wp-image-214" src="http://inkscapetutorials.wordpress.com/files/2008/07/color_matrix_turbulence_stars.png" alt="" width="400" height="190" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Flash 10: new method BitmapData.histogram();]]></title>
<link>http://pixelero.wordpress.com/2008/06/19/flash-10-bitmapdatahistogram/</link>
<pubDate>Thu, 19 Jun 2008 18:44:39 +0000</pubDate>
<dc:creator>pixelero</dc:creator>
<guid>http://pixelero.wordpress.com/2008/06/19/flash-10-bitmapdatahistogram/</guid>
<description><![CDATA[this demo requires Flash 10 Beta installed: Extract from as3 language reference: histogram() method ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>this demo requires <a target="Astro" href="http://labs.adobe.com/technologies/flashplayer10/">Flash 10 Beta</a> installed:<br />
<a href="http://www.petrileskinen.fi/Actionscript/HistogramTest/HistogramTest.html"><img src="http://www.petrileskinen.fi/Actionscript/HistogramTest/HistogramTest.jpg" border="0" alt="" /></a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/HistogramTest/BitmapData.html#histogram()">Extract from as3 language reference</a>:</p>
<p>histogram()	method</p>
<p style="padding-left:30px;">flash10 function histogram(hRect:Rectangle = null):Vector</p>
<p style="padding-left:30px;">Language Version : 	ActionScript 3.0<br />
Player Version : 	Flash Player 10</p>
<p style="padding-left:30px;">Computes a 256 bin histogram of a BitmapData object.<br />
The functions returns a vector of 4 number vectors.<br />
The 4 number vectors represent the red, green, blue<br />
and alpha components respectively. Each number vector<br />
contains 256 values which represent the population count<br />
of a indivual component value, from 0 to 255.</p>
<p style="padding-left:30px;">Parameters<br />
hRect:Rectangle (default = null) — The area of the BitmapData<br />
object that should be used.</p>
<p style="padding-left:30px;">Returns Vector</p>
<p><span style="color:#101010;">some code snippet from my demo:</span></p>
<p>function updateHistograms(bmpData:BitmapData,<br />
sprites:Vector.&#60;Sprite&#62;):void {</p>
<p style="padding-left:30px;"><span style="color:#a0a0a0;">// histogram is a Vector in two dimensions<br />
// notice the interesting type Vector.&#60;Vector.&#60;Number&#62;&#62;</span><br />
var hst:Vector.&#60;Vector.&#60;Number&#62;&#62; = bmpData.histogram();</p>
<p style="padding-left:30px;">var height:int=128; <span style="color:#a0a0a0;">// height for diagrams</span><br />
var maxValue:Number;<br />
var value:Number;<br />
var i:int;<br />
var clr:int = 16; <span style="color:#a0a0a0;">// value for bitwise shift left, start with red</span><br />
<span style="color:#a0a0a0;"> // channel = 0:red, 1:green, 2:blue </span></p>
<p style="padding-left:30px;">for (var channel:int = 0; channel!=3; channel++) {</p>
<p style="padding-left:60px;"><span style="color:#a0a0a0;"> // find the max value on the histogram,</span><br />
<span style="color:#a0a0a0;"> // i goes from 1 to 254,</span><br />
<span style="color:#a0a0a0;"> // I discarded the 0 and 0xFF values to get a better balanced chart</span></p>
<p style="padding-left:60px;">maxValue =0.0;<br />
for (i=1; i!=255; i++) {<br />
value = hst[channel][i];<br />
maxValue = value&#62;maxValue ? value : maxValue;<br />
}</p>
<p style="padding-left:60px;">with (sprites[channel].graphics) {<br />
<span style="color:#a0a0a0;"> // empty and white background</span><br />
clear();<br />
beginFill(0xFFFFFF,1.0);<br />
drawRect(0,0,255,height);<br />
<span style="color:#a0a0a0;">// draw a vertical line for each value with a corresponding color</span></p>
<p style="padding-left:60px;">i=0;<br />
for each(value in hst[channel]) {<br />
lineStyle(1.0,i&#60;&#60;clr) ;<br />
moveTo(i,height);<br />
lineTo(i++,Math.max(0.0,height-value*height/maxValue) );<br />
}</p>
<p style="padding-left:30px;">}<br />
clr -= 8;<br />
}<br />
}</p>
<p>In the demo I used <a href="http://www.gskinner.com/blog/archives/2007/12/colormatrix_upd.html" target="gskinner">Grant Skinner&#8217;s ColorMatrix</a> for manipulating the image.</p>
<p><span style="color:#101010;">&#8230; two other new methods for BitmapData are <a href="http://www.petrileskinen.fi/Actionscript/HistogramTest/BitmapData.html#getVector()" target="getvct">getVector() </a> and <a href="http://www.petrileskinen.fi/Actionscript/HistogramTest/BitmapData.html#setVector()" target="setvct">setVector()</a></span><span style="color:#101010;"> working just like older getPixels and setPixels-methods except with a Vector of uints, length = width x height:<br />
like for instance copying pixels from 0,0 &#8211; 49,49 to 100,100 &#8211; 149,149:</span></p>
<p>var bmpVct:Vector.&#60;uint&#62; = bmpData.getVector(new Rectangle(0,0,50,50));<br />
bmpData.setVector(new Rectangle(100,100,50,50),bmpVct);</p>
<p><span style="color:#101010;"> And an example of experimental image manipulation of <a href="http://www.flickr.com/photos/pixelero/2649743073/">sorting by the pixel value</a> <a href="http://www.flickr.com/photos/pixelero/2649743073/" title="Sorted pixels by piXelero, on Flickr"><img src="http://farm4.static.flickr.com/3090/2649743073_3270fcfc64_t.jpg" width="72" height="100" alt="Sorted pixels" /></a></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Clase para manejo de color con ActionScript 3 - (Brillo, Contraste, Saturación, etc)]]></title>
<link>http://shiftf12.net/2008/06/19/clase-para-manejo-de-color-con-actionscript-3-brillo-contraste-saturacion-etc/</link>
<pubDate>Thu, 19 Jun 2008 17:20:36 +0000</pubDate>
<dc:creator>elhector</dc:creator>
<guid>http://shiftf12.net/2008/06/19/clase-para-manejo-de-color-con-actionscript-3-brillo-contraste-saturacion-etc/</guid>
<description><![CDATA[Para un proyecto que estoy realizando necesitaba poder manejar el brillo, contraste y saturación de ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Para un proyecto que estoy realizando necesitaba poder manejar el brillo, contraste y saturación de unas imágenes. Descubrí (tristemente) que ActionScript no tiene métodos sencillos para afectar el color de esa manera&#8230; (Yo estaba buscando algo como: movie_clip.setSaturation = 20; o algo así!)&#8230; Sin embargo, me dí cuenta que era posible por medio de <a href="http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#38;file=00002079.html">operaciones de matrices</a>&#8230; YAY!!!&#8230;</p>
<p style="text-align:left;">&#8230; Ese &#8220;yay&#8221; fué sarcástico: siempre he apestado en álgebra lineal.</p>
<p style="text-align:left;">Pero bueno&#8230; El proyecto tenía que salir adelante así que seguí buscando alguna solución. La encontré y la quiero compartir con ustedes: <strong><a href="http://www.gskinner.com/blog/archives/2007/12/colormatrix_upd.html">Librería ColorMatrix</a></strong> para ActionScript 3 (también la tienen para el AS2). EXCELENTE y muy muy fácil de usar. Cuando te la bajas incluye un buen ejemplo en el que vemos cómo instanciarla y cómo aplicar los efectos de color a manera de filtros. Gracias a esto quedé bien con un cliente. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p style="text-align:right;"><a href="http://www.radicalgolem.com/workspace/CircleMagic/dataDriven_Ndetails_FixedPalette/circleMagic_1.html"><img src="http://shiftf12.wordpress.com/files/2008/06/dibujo4.jpg" alt="" width="323" height="298" /></a></p>
<p style="text-align:right;">prototipo en el que estoy trabajando:<br />
widget de visualización<br />
basado en datos XML con manejo<br />
y asignación de color dinámico</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Dynamic _saturation, _brightness and _contrast in AS2]]></title>
<link>http://flaim.wordpress.com/2008/03/13/dynamic-_saturation-_brightness-and-_contrast-in-as2/</link>
<pubDate>Thu, 13 Mar 2008 18:48:36 +0000</pubDate>
<dc:creator>flaim</dc:creator>
<guid>http://flaim.wordpress.com/2008/03/13/dynamic-_saturation-_brightness-and-_contrast-in-as2/</guid>
<description><![CDATA[In my previous AS2 post I&#8217;ve explained how to dynamically adjust saturation on MovieClips usin]]></description>
<content:encoded><![CDATA[In my previous AS2 post I&#8217;ve explained how to dynamically adjust saturation on MovieClips usin]]></content:encoded>
</item>
<item>
<title><![CDATA[MovieClip saturation Tweening using ColorMatrix and Tweener]]></title>
<link>http://flaim.wordpress.com/2008/03/13/movieclip-saturation-tweening-using-colormatrix-and-tweener/</link>
<pubDate>Thu, 13 Mar 2008 15:34:34 +0000</pubDate>
<dc:creator>flaim</dc:creator>
<guid>http://flaim.wordpress.com/2008/03/13/movieclip-saturation-tweening-using-colormatrix-and-tweener/</guid>
<description><![CDATA[Here is a more complicated implementation of ColorMatrix Class in conjunction with Tweener in order ]]></description>
<content:encoded><![CDATA[Here is a more complicated implementation of ColorMatrix Class in conjunction with Tweener in order ]]></content:encoded>
</item>
<item>
<title><![CDATA[Complex Gallery in Flash 8]]></title>
<link>http://flaim.wordpress.com/2007/10/31/complex-gallery-in-flash-8/</link>
<pubDate>Wed, 31 Oct 2007 16:31:44 +0000</pubDate>
<dc:creator>flaim</dc:creator>
<guid>http://flaim.wordpress.com/2007/10/31/complex-gallery-in-flash-8/</guid>
<description><![CDATA[&nbsp; I&#8217;ve decided to use and publish my latest version of a flash gallery as a private photo]]></description>
<content:encoded><![CDATA[&nbsp; I&#8217;ve decided to use and publish my latest version of a flash gallery as a private photo]]></content:encoded>
</item>

</channel>
</rss>
