[Pixelle-commit] SF.net SVN: pixelle: [88] trunk/pixelle/htdocs/index.html
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-06-27 04:07:37
|
Revision: 88
http://pixelle.svn.sourceforge.net/pixelle/?rev=88&view=rev
Author: dbrosius
Date: 2008-06-26 21:07:38 -0700 (Thu, 26 Jun 2008)
Log Message:
-----------
add more examples
Modified Paths:
--------------
trunk/pixelle/htdocs/index.html
Modified: trunk/pixelle/htdocs/index.html
===================================================================
--- trunk/pixelle/htdocs/index.html 2008-06-27 04:01:09 UTC (rev 87)
+++ trunk/pixelle/htdocs/index.html 2008-06-27 04:07:38 UTC (rev 88)
@@ -29,22 +29,38 @@
and selection pieces of a bitmap. Each expression can take as input the value of any other
value.
- <p><pre>As of June 25, simple expressions should work.
+ <p><pre>As of June 25, simple expressions should work. Some examples:
- An example would be p[x,y].r = <b>(x + y) == 100 ? 255 : p[x,y].r</b>
+ p[x,y].r = <b>(x + y) == 100 ? 255 : p[x,y].r</b>
This sets all red pixels to the same value as the input, except those pixels
that form a diagonal line where x + y == 100, and those pixes are converted to white.
- Another example would be p[x,y].r = <b>p[x,y].g</b>
+ p[x,y].r = <b>p[x,y].g</b>
This sets all the red pixels to the value of all the green pixels.
- One final example would be p[x,y].b = <b>p[y,x].b</b>
+ p[x,y].b = <b>p[y,x].b</b>
This rotates the blue component 90 degrees.
+
+ p[x,y].g = <b>(p[x,y].g*3 + p[x+1,y].g + p[x,y+1].g)/5</b>
+
+ This performs a simple convolution operation on the green pixels.
+
+ p[x,y].t = <b>((x == y) || (x == (width - y))) ? 0 : p[x,y].t</b>
+
+ Sets the transparency to fully transparent in an x shape.
+
+ p[x,y].s = <b>(p[x,y].r == p[x,y].g) || (p[x,y].r == p[x,y].b)</b>
+
+ Sets the selection to any pixels where the red component equals either
+ the green or blue component
+
</pre></p>
+ Ano
+
<p>Still to be done is expressions with inequalities, expressions with && and || clauses,
and a bunch of other fixes.</p>
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|