get_brand_color_mix {brandr} | R Documentation |
Get a mix of brand colors
Description
get_brand_color_mix()
mixes two specific brand colors.
Usage
get_brand_color_mix(
position = 500,
color_1 = "primary",
color_2 = "secondary",
alpha = 0.5
)
Arguments
position |
(Optional) A |
color_1 , color_2 |
(Optional) A |
alpha |
(Optional) A number between |
Details
Path to _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")
Value
A character
vector with
hexadecimal color codes.
See Also
Other utility functions:
get_brand_color()
,
get_brand_color_tint()
,
get_brand_font()
Examples
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