From 1a7ce3da02a25900dcdc09c110fe00229fd193d4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 27 May 2022 16:09:43 +0200 Subject: Luma color --- tests/ref/utility/color.png | Bin 168 -> 271 bytes tests/typ/utility/color.typ | 6 ++++++ 2 files changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/ref/utility/color.png b/tests/ref/utility/color.png index e7d87ba4..a03795f7 100644 Binary files a/tests/ref/utility/color.png and b/tests/ref/utility/color.png differ diff --git a/tests/typ/utility/color.typ b/tests/typ/utility/color.typ index 81b67ae9..449655bf 100644 --- a/tests/typ/utility/color.typ +++ b/tests/typ/utility/color.typ @@ -8,6 +8,12 @@ // Alpha channel. #test(rgb(255, 0, 0, 50%), rgb("ff000080")) +--- +// Test gray color conversion. +// Ref: true +#rect(fill: luma(0)) +#rect(fill: luma(80%)) + --- // Test CMYK color conversion. // Ref: true -- cgit v1.2.3