aboutsummaryrefslogtreecommitdiffstats
path: root/man/blind-spiral-gradient.1
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-03 14:30:44 +0200
committerMattias Andrée <maandree@kth.se>2017-07-03 14:30:44 +0200
commit56ed14063c8b2c82d5ea0652028f47f76cb710f0 (patch)
tree7a156516993dfed31a6356e36d5c5e692605963c /man/blind-spiral-gradient.1
parentblind-spiral-gradient: add support for superelliptic sprials (diff)
downloadblind-56ed14063c8b2c82d5ea0652028f47f76cb710f0.tar.gz
blind-56ed14063c8b2c82d5ea0652028f47f76cb710f0.tar.bz2
blind-56ed14063c8b2c82d5ea0652028f47f76cb710f0.tar.xz
Document blind-coordinate-field, blind-*-gradient, and blind-*-wave (sinc still pending), and sinus => sine
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'man/blind-spiral-gradient.1')
-rw-r--r--man/blind-spiral-gradient.1123
1 files changed, 123 insertions, 0 deletions
diff --git a/man/blind-spiral-gradient.1 b/man/blind-spiral-gradient.1
new file mode 100644
index 0000000..7d22642
--- /dev/null
+++ b/man/blind-spiral-gradient.1
@@ -0,0 +1,123 @@
+.TH BLIND-SPIRAL-GRADIENT 1 blind
+.SH NAME
+blind-spiral-gradient - Generate a video with a spiral gradient
+.SH SYNOPSIS
+.B blind-spiral-gradient
+[-al]
+-w
+.I width
+-h
+.I height
+.SH DESCRIPTION
+.B blind-spiral-gradient
+prints a video with a spiral gradient to stdout,
+parameters for each from is read from each frame
+in stdin. The gradient is stored in all channels
+of the video.
+.P
+The video in stdin must contain 2 to 5 pixels per
+frame (inclusively). The first pixel shall point
+to the beginning of the gradient (where the value
+is 0) and the second pixel shall point to the end
+of the gradient (where the value is 1). In these
+pixels, the value of the first channel specifies
+the X-position and the value of the second
+channel specifies Y-position, the other channels
+are ignored. The angle of the vector between these
+two pixels determine the angle of the spiral.
+.P
+If there are four or five pixel in each frame in
+stdin, the third and fourth pixels are used to
+modify the shape of the spiral so that it is
+based on a superellipse instead of a circle.
+The first and second channel of third pixel creates
+a vector that is normalised. This vector and its
+normal creates the basis an imaginary coordinate
+system with its origo at the beginning of the spiral.
+The superellipse defined by the equation
+.RI | x |^ a +| y / m |^ b =1,
+where
+.I x
+is the distance from origo along the vector,
+.I y
+is the distance from origo along the vector's normal,
+.IR a ,
+.IR b ,
+and
+.I m
+are the values of the first, second, and third
+channels, respectively, in the fourth pixel. and has
+the distance 1 from origo at all points on it. If
+.IR a ,
+.IR b ,
+and
+.I m
+have the values 2, 2, and 1, respectively, these
+pixels have no effect on the spiral's shape.
+The third and fourth channels in the third pixel
+and the fourth channel in the fourth pixel are
+ignored.
+.P
+If there are three or five pixels, the channels,
+in order, in the last pixel, specifies the value
+.IR a ,
+.IR e ,
+.IR p ,
+and
+.IR k ,
+whose default values are 0, 1, 1, and 1, respectively.
+.I k
+is ignored unless
+.B -l
+is used. If
+.B -l
+is not used, the spiral is defined by the equation
+.IR r = a +( b /( 2\fBpi\fP )^ e ) v ^( ep ).
+If
+.B -l
+is used, the spiral is defined by the equation
+.RI log( r / k )= a +(log( b )/( 2\fBpi\fP )^ e ) v ^( ep ).
+.I r
+is defined as the distance from the center of the
+spiral,
+.I b
+is defined as the distance between the points
+specified in the first and second pixel from stdin,
+and
+.I v
+is defined as the angle.
+.SH NOTES
+Pixels after the end of the gradient have values
+larger than 1.
+.BR blind-*-wave (1)
+commands can be used to put all values between
+0 and 1.
+.SH OPTIONS
+.TP
+.B -a
+Create a spiral that gones anticlockwise.
+.TP
+.B -l
+Create a logarithmic spiral.
+.TP
+.BR -w " "\fIwidth\fP
+The width of the video, in pixels.
+.TP
+.BR -h " "\fIheight\fP
+The height of the video, in pixels.
+.SH SEE ALSO
+.BR blind (7),
+.BR blind-from-text (7),
+.BR blind-double-sine-wave (1),
+.BR blind-round-wave (1),
+.BR blind-sawtooth-wave (1),
+.BR blind-sinc-wave (1),
+.BR blind-sine-wave (1),
+.BR blind-triangular-wave (1),
+.BR blind-cone-gradient (1),
+.BR blind-linear-gradient (1),
+.BR blind-radial-gradient (1),
+.BR blind-square-gradient (1)
+.SH AUTHORS
+Mattias Andrée
+.RI < maandree@kth.se >