mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-17 10:02:10 +01:00
24 lines
543 B
Markdown
24 lines
543 B
Markdown
|
|
# 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"
|
||
|
|
|