-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathff-frhs.1
58 lines (56 loc) · 1.07 KB
/
ff-frhs.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.Dd 2024-05-07
.Dt FF-FRHS 1
.Os farbfeld-utils
.Sh NAME
.Nm ff-frhs
.Nd farbfeld filter that converts HSV colours to RGB
.Sh SYNOPSIS
.Nm
<mode>
.Sh DESCRIPTION
.Nm
reads HSV colour information from stdin, converts it to
.Xr farbfeld 5
RGB and writes the result to stdout.
.Pp
HSV is short for hue, saturation and value.
.Pp
See
.Xr ff-tohs 1
for how to convert RGB colours to HSV.
.Pp
It may not be the intended usage, but you can try passing a normal image
through this filter for interesting effects.
.Pp
In case of an error
.Nm
writes a diagnostic message to stderr.
.Sh EXIT STATUS
.Bl -tag -width Ds
.It 0
Image processed successfully.
.It 1
An error occurred.
.El
.Sh OPTIONS
The filter takes exactly one argument which is the mode.
The available modes are:
i --
l --
v --
- -- no mode (do not use any of the above modes)
The modes affect how the HSV input is converted to RGB.
.Sh REFERENCES
https://en.wikipedia.org/wiki/HSL_and_HSV
.Sh EXAMPLES
$
.Nm
< hsv.dat > rgb.ff
.Pp
$
.Nm
< image.ff > image-hsv.ff
.Sh SEE ALSO
.Xr ff-tohs 1 ,
.Xr farbfeld 5 ,
.Xr farbfeld-utils 7