The expression semantics include these rules:
@@ -385,8 +404,11 @@X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Ffx.html;h=5efd6688d3929ef90a20d38bc353c8af9d5279ce;hb=075ad25a9c1669a298a84101add52b82724d4c33;hp=67e100347279876676164cfce9a63d457e20d0d8;hpb=83a272ecd5c0a2f5dc501872d84d8f934c0dcc38;p=imagemagick diff --git a/www/fx.html b/www/fx.html index 67e100347..5efd6688d 100644 --- a/www/fx.html +++ b/www/fx.html @@ -3,20 +3,17 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- - - - - -The expression semantics include these rules:
@@ -385,8 +404,11 @@ $magick> convert xc:'rgb(25%,50%,75%)' rose: -colorspace rgb \
-format 'Red channel of NW corner of image # %[fx:t] is %[fx: s]' info:Red channel of NW corner of image # 0 is 0.250004
Red channel of NW corner of image # 1 is 0.188235
Use %[fxc: ] if your expression is a constant (e.g. %[fxc:page.x/2]. The result is cached and the cached result returned rather than evaluating the expression each time.
+The color-escape %[pixel: ] is evaluated once per image and per color channel in that image (-channel is ignored), The values generated are then converted into a color string (a named color or hex color value). The symbols i and j are set to zero, and s and t refer to each successively current image and index.
@@ -468,10 +492,10 @@ @@ -480,5 +504,16 @@ +