summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/compiler/color.pngbin1407 -> 1354 bytes
-rw-r--r--tests/typ/compiler/color.typ4
-rw-r--r--tests/typ/compute/construct.typ2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ref/compiler/color.png b/tests/ref/compiler/color.png
index 69dbe5e8..2b416f64 100644
--- a/tests/ref/compiler/color.png
+++ b/tests/ref/compiler/color.png
Binary files differ
diff --git a/tests/typ/compiler/color.typ b/tests/typ/compiler/color.typ
index ec1f9902..f165ac0f 100644
--- a/tests/typ/compiler/color.typ
+++ b/tests/typ/compiler/color.typ
@@ -8,7 +8,7 @@
spacing: 1fr,
rect(width: 1cm, fill: cmyk(69%, 11%, 69%, 41%)),
rect(width: 1cm, fill: c),
- rect(width: 1cm, fill: c.negate()),
+ rect(width: 1cm, fill: c.negate(space: cmyk)),
)
#for x in range(0, 11) {
@@ -82,4 +82,4 @@
// Ref: false
#test-repr(luma(20%).lighten(50%), luma(60%))
#test-repr(luma(80%).darken(20%), luma(64%))
-#test-repr(luma(80%).negate(), luma(20%))
+#test-repr(luma(80%).negate(space: luma), luma(20%))
diff --git a/tests/typ/compute/construct.typ b/tests/typ/compute/construct.typ
index dcf59755..e429efc5 100644
--- a/tests/typ/compute/construct.typ
+++ b/tests/typ/compute/construct.typ
@@ -11,7 +11,7 @@
// Test color modification methods.
#test(rgb(25, 35, 45).lighten(10%), rgb(48, 57, 66))
#test(rgb(40, 30, 20).darken(10%), rgb(36, 27, 18))
-#test(rgb("#133337").negate(), rgb(236, 204, 200))
+#test(rgb("#133337").negate(space: rgb), rgb(236, 204, 200))
#test(white.lighten(100%), white)
// Color mixing, in Oklab space by default.