diff options
Diffstat (limited to 'tests/typ/library/rgb.typ')
| -rw-r--r-- | tests/typ/library/rgb.typ | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/typ/library/rgb.typ b/tests/typ/library/rgb.typ new file mode 100644 index 00000000..b962bbc0 --- /dev/null +++ b/tests/typ/library/rgb.typ @@ -0,0 +1,17 @@ +// Check the output. +#rgb(0.0, 0.3, 0.7) + +// Alpha channel. +#rgb(1.0, 0.0, 0.0, 0.5) + +// Warning: 2:6-2:9 should be between 0.0 and 1.0 +// Warning: 1:11-1:15 should be between 0.0 and 1.0 +#rgb(-30, 15.5, 0.5) + +// Error: 6-10 missing argument: blue component +#rgb(0, 1) + +// Error: 3:6-3:6 missing argument: red component +// Error: 2:6-2:6 missing argument: green component +// Error: 1:6-1:6 missing argument: blue component +#rgb() |
