getTeamColours | R Documentation |
Given a home and away team, return a set of two colours that correspond one to each team, yet are not too similar to eachother. Instead of returning Blue and Blue for Buffalo and Tampa, change Buffalo to their Gold
getTeamColours(home, away, delta = 0.15)
home |
Home Team colours to get |
away |
Away Team's colours to get |
delta |
Colour delta required. Default 0.15. See colourDelta. Must be between 0 and 1 |
a list with two items: home & away, each containing the appropriate hex colour value
getTeamColours("Buffalo Sabres", "Tampa Bay Lightning")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.