diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2024-02-27 12:15:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 11:15:17 +0000 |
| commit | 79615a01bd4266e6a5adb385650735768ea96d56 (patch) | |
| tree | 7a5844b3174bfc2602d6eeb32e03ed040e3b2bb8 /tests | |
| parent | 0aa925435628f5a6f29478e7e19ed2d4f50eabf8 (diff) | |
Improve color negation (#3500)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/compiler/color.png | bin | 1407 -> 1354 bytes | |||
| -rw-r--r-- | tests/typ/compiler/color.typ | 4 | ||||
| -rw-r--r-- | tests/typ/compute/construct.typ | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ref/compiler/color.png b/tests/ref/compiler/color.png Binary files differindex 69dbe5e8..2b416f64 100644 --- a/tests/ref/compiler/color.png +++ b/tests/ref/compiler/color.png 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. |
