mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: dim and brighten using linear rgb interpolation
Adds setting tweak.dim-amount, similar to bold-text-in-bright-amount. Closes #2006
This commit is contained in:
parent
5f72f51ae8
commit
663c9082db
7 changed files with 51 additions and 66 deletions
|
|
@ -396,7 +396,7 @@ empty string to be set, but it must be quoted: *KEY=""*)
|
|||
*bold-text-in-bright*
|
||||
Semi-boolean. When enabled, bold text is rendered in a brighter
|
||||
color (in addition to using a bold font). The color is brightened
|
||||
by increasing its luminance.
|
||||
by blending it with white.
|
||||
|
||||
If set to *palette-based*, rather than a simple *yes|true*, colors
|
||||
matching one of the 8 regular palette colors will be brightened
|
||||
|
|
@ -986,8 +986,8 @@ can configure the background transparency with the _alpha_ option.
|
|||
an entry in the color palette. Applications emit them by combining
|
||||
a color value, and a "dim" attribute.
|
||||
|
||||
By default, foot implements this by reducing the luminance of the
|
||||
current color. This is a generic approach that applies to both
|
||||
By default, foot implements this by blending the current color
|
||||
with black. This is a generic approach that applies to both
|
||||
colors from the 256-color palette, as well as 24-bit RGB colors.
|
||||
|
||||
You can change this behavior by setting the *dimN* options. When
|
||||
|
|
@ -999,7 +999,7 @@ can configure the background transparency with the _alpha_ option.
|
|||
the corresponding *regularN* color will be used.
|
||||
|
||||
If the current color does not match any known color, it is dimmed
|
||||
by reducing the luminance (i.e. the same behavior as if the *dimN*
|
||||
by blending with black (i.e. the same behavior as if the *dimN*
|
||||
options are unconfigured). 24-bit RGB colors will typically fall
|
||||
into this category.
|
||||
|
||||
|
|
@ -1940,6 +1940,9 @@ any of these options.
|
|||
Boolean. When enabled, foot will process sixel images. Default:
|
||||
_yes_
|
||||
|
||||
*dim-amount*
|
||||
Amount by which dimmed text is darkened. Default: _1.5_.
|
||||
|
||||
*bold-text-in-bright-amount*
|
||||
Amount by which bold fonts are brightened when
|
||||
*bold-text-in-bright* is set to *yes* (the *palette-based* variant
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue