GitHub's colour of each language: the one that GitHub Linguist gives it and that
GitHub shows in the language bar of a repository, so that a language has the same colour in
every ring and on every card. "Other", and a language without a colour, are grey.
visible_color() makes a colour that would fade into the surface of the card stand out.
Arguments
- languages
The names of the languages, as GitHub gives them.
- col
The colours of the card, from
card_colors().
Examples
rghcard:::language_colors(c("R", "Python", "PowerShell", "Other"), rghcard:::card_colors("dark"))
#> [1] "#198CE7" "#3572A5" "#24487D" "#9198a1"
rghcard:::language_colors(c("JavaScript", "Shell"), rghcard:::card_colors("light"))
#> [1] "#CAB927" "#76CC3A"