plots new accept pri, sec and ter arguments instead of x,y,z to avoid confusion. tests, tests, tests

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-04-15 12:04:32 +02:00
commit 652a8ca1b7
No known key found for this signature in database
28 changed files with 3275 additions and 179 deletions

View file

@ -0,0 +1,23 @@
# Contrasting works
Code
contrast_text(colors)
Output
[1] "black" "white" "white" "white" "black" "white"
---
Code
contrast_text(colors, light_text = "blue", dark_text = "grey10", method = "relative",
threshold = 0.1)
Output
[1] "grey10" "blue" "grey10" "blue" "grey10" "grey10"
---
Code
contrast_text(colors, light_text = "blue", dark_text = "grey10", method = "perceived",
threshold = 0.7)
Output
[1] "grey10" "blue" "blue" "blue" "grey10" "blue"