X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Ffx.html;h=fa8306c477315bdb5054696a8e16cfbfc2bbfb21;hb=f0d1f5db023f9865b503dfdb122412b0fdeecdf2;hp=e110b14f7dff5ed5570175b36d971963e4d19297;hpb=2744bd91de384c5ef276f9afb4dec138f76bfd0b;p=imagemagick
diff --git a/www/fx.html b/www/fx.html
index e110b14f7..fa8306c47 100644
--- a/www/fx.html
+++ b/www/fx.html
@@ -1,13 +1,14 @@
-
+
+
@@ -228,9 +229,9 @@
&& (logical AND), || (logical OR),
~ (logical NOT), ?: (ternary conditional)
math functions:
-
abs(), acos(), alt(), asin(), atan(), atan2(), ceil(), cos(), cosh(), debug(), exp(), floor(),
- hypot(), int(), ln(), log(), logtwo(), max(), min(), mod(), pow(), rand(), round(),
- sign(), sin(), sinh(), sqrt(), tan(), tanh()
+
abs(), acos(), airy(), alt(), asin(), atan(), atan2(), ceil(), cos(), cosh(), debug(), exp(), floor(),
+ hypot(), int(), j0(), j1(), jinc(), ln(), log(), logtwo(), max(), min(), mod(), pow(), rand(), round(),
+ sign(), sin(), sinc(), sinh(), sqrt(), tan(), tanh()
channel functions:
channel(r,g,b,a), channel(c,m,y,k,a)
color names:
@@ -339,6 +340,7 @@
s, t, u, v, n, i, j, w, h, z, r, g, b, a, o, c, y, m, k: symbols
abs(x): absolute value function
acos(x): arc cosine function
+
airy(x): Airy function (max=1, min=0); airy(x)=[jinc(x)]2=[2*j1(pi*x)/(pi*x)]2
alt(x): sign alternation function (return 1.0 if int(x) is even, -1.0 if int(x) is odd)
asin(x): arc sine function
atan(x): arc tangent function
@@ -353,6 +355,9 @@
floor(x): largest integral value not greater than argument
hypot(x,y): the square root of x2+y2
int(x): greatest integer function (return greatest integer less than or equal to x)
+
j0(x): Bessel functions of x of the first kind of order 0
+
j1(x): Bessel functions of x of the first kind of order 1
+
jinc(x): jinc function (max=1, min=-0.1323); jinc(x)=2*j1(pi*x)/(pi*x)
ln(x): natural logarithm function
log(x): logarithm base 10
logtwo(x): logarithm base 2
@@ -365,6 +370,7 @@
round(): round to integral value, regardless of rounding direction
sign(x): return -1.0 if x is less than 0.0 otherwise 1.0
sin(x): sine function
+
sinc(x): sinc function (max=1, min=-0.21); sinc(x)=sin(pi*x)/(pi*x)
sinh(x): hyperbolic sine function
sqrt(x): square root function
tan(x): tangent function
@@ -393,7 +399,7 @@
$magick> convert image1.jpg image2.jpg image3.jpg -fx "(u+u[2])/2.0" image.jpg
By default, the image to which p, r, g, b, a, etc., are applied is the first image u in the image list, which may also be referenced using s.
-
It is important to note the special role played by the first image. This is the only image in the image sequence that is modified, any other images being used only for their data. As an illustrative example, comsider the following, and note that the setting -channel red instructs -fx to modify only the red channel; nothing in the green or blue channels will change. It is instructive to ponder why the result is not symmetric.
+
It is important to note the special role played by the first image. This is the only image in the image sequence that is modified, other images are used only for their data. As an illustrative example, consider the following, and note that the setting -channel red instructs -fx to modify only the red channel; nothing in the green or blue channels will change. It is instructive to ponder why the result is not symmetric.
$magick> convert -channel red logo: -flop logo: -resize "20%" -fx "(u+v)/2" image.jpg