get_brand_color_mix | R Documentation |
get_brand_color_mix()
mixes two specific brand colors.
get_brand_color_mix(
position = 500,
color_1 = "primary",
color_2 = "secondary",
alpha = 0.5
)
position |
(Optional) A |
color_1 , color_2 |
(Optional) A |
alpha |
(Optional) A number between |
_brand.yml
brandr
will always look for a _brand.yml
file in the root directory of
your project. If the file is not found, an error message will be displayed.
You can also set the path to the file manually using the
options()
function:
options(BRANDR_BRAND_YML = "PATH_TO_BRAND.YML")
A character
vector with
hexadecimal color codes.
Other utility functions:
get_brand_color()
,
get_brand_color_tint()
,
get_brand_font()
get_brand_color_mix(
position = 500,
color_1 = "primary",
color_2 = "secondary",
alpha = 0.5
)
#> [1] "#8A2C50" # Expected
get_brand_color_mix(
position = c(250, 500, 750),
color_1 = "primary",
color_2 = "secondary",
alpha = 0.25
)
#> [1] "#591E23" "#B23D46" "#D89EA2" # Expected
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.