Two Filtro primitives allow the manipulation of colors.
The Matrice di Colore primitive maps each RGB and Alpha value to a new value. The transformation is described by a 5×5 matrix with the bottom row fixed, thus a general transformation is described by a 5×4 matrix. The fifth column adds a value that is independent of RGB or Alpha, allowing for nonlinear color correction.
Four types of transformations are defined, of which three are special classes of the first.
A «negative» can be made by setting the RGB diagonal matrix elements (a_{00}, a_{11}, a_{22}) to -1.00 and the top three elements of the fifth column (a_{04}, a_{14}, a_{24}) to 1.00.
Partially implemented, No user interface.
The Trasferimento di Componente primitive changes the RGB and Alpha of an object by applying independent functions to each of the RGB and Alpha input values. The following modes for defining the functions are available:
© 2005-2008 Tavmjong Bah. | Get the book. |