mirror of https://github.com/mpv-player/mpv
manpage: clarify syntax for color options
Options which take colors accept two variants. The first is "r/g/b/a", the second is "#AARRGGBB". Since they put alpha at different places, it's probably better to document the second variant explicitly. (It's a bit strange that they put alpha in different places, but on the other hand, it's kind of natural. The second variant should probably be considered deprecated.)
This commit is contained in:
parent
a91f127246
commit
09c3296683
|
@ -2453,7 +2453,7 @@ OSD
|
||||||
Alternatively, the color can be specified as a RGB hex triplet in the form
|
Alternatively, the color can be specified as a RGB hex triplet in the form
|
||||||
``#RRGGBB``, where each 2-digit group expresses a color value in the
|
``#RRGGBB``, where each 2-digit group expresses a color value in the
|
||||||
range 0 (``00``) to 255 (``FF``). For example, ``#FF0000`` is red.
|
range 0 (``00``) to 255 (``FF``). For example, ``#FF0000`` is red.
|
||||||
This is similar to web colors.
|
This is similar to web colors. Alpha is given with ``#AARRGGBB``.
|
||||||
|
|
||||||
.. admonition:: Examples
|
.. admonition:: Examples
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue