1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-29 21:44:24 +03:00
wezterm/Cargo.toml
Wez Furlong 4ce67c7f9a Use the palette crate for blending
I wasn't pleased with how text was rendering on a colored background,
and after some research I discovered that I was neglecting to convert
from sRGB to a linear RGB colorspace, and that this was causing the
blending to have inaccurate results.

This diff pulls in the palette crate to handle the heavy lifting.
It doesn't appear to have any especially fast optimizations for this
though, which is a shame because the blending code I was using
previously was largely integer math with few branches.  The colorspace
conversion has several floating point operations and branches that
are unavoidable :-/

We run a bit hotter on the CPU but the results are much more pleasing
to the eye.
2018-02-09 23:32:35 -08:00

43 lines
669 B
TOML

[package]
authors = ["Wez Furlong <wez@wezfurlong.org>"]
name = "wezterm"
version = "0.1.0"
[dependencies]
bitflags = "1.0.1"
failure = "0.1.1"
freetype = "0.3.0"
harfbuzz-sys = "0.1.15"
libc = "0.2.36"
mio = "0.6.12"
palette = "0.2.1"
resize = "0.3.0"
serde = "1.0.27"
serde_derive = "1.0.27"
servo-fontconfig = "0.4.0"
toml = "0.4.5"
unicode-width = "0.1.4"
[dependencies.term]
path = "term"
[dependencies.xcb]
features = ["shm"]
version = "0.8.1"
[dependencies.xcb-util]
features = [
"image",
"icccm",
"ewmh",
"misc",
"shm",
"keysyms",
]
version = "0.2.0"
[features]
debug-escape-sequences = ["term/debug-escape-sequences"]
[workspace]