summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst/src/geom/color.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/geom/color.rs b/crates/typst/src/geom/color.rs
index bf04408c..3a02a8c2 100644
--- a/crates/typst/src/geom/color.rs
+++ b/crates/typst/src/geom/color.rs
@@ -906,7 +906,7 @@ impl Color {
pub fn negate(self) -> Color {
match self {
Self::Luma(c) => Self::Luma(Luma::new(1.0 - c.luma)),
- Self::Oklab(c) => Self::Oklab(Oklab::new(c.l, 1.0 - c.a, 1.0 - c.b, c.alpha)),
+ Self::Oklab(c) => Self::Oklab(Oklab::new(c.l, -c.a, -c.b, c.alpha)),
Self::LinearRgb(c) => Self::LinearRgb(LinearRgba::new(
1.0 - c.red,
1.0 - c.green,