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
numericvector indicating the position of the brand color in the range of tints. The range of positions is from0to1000(Default:500).- color_1, color_2
(Optional) A
characterstring indicating the name of a color present in thecolorsection of the_brand.ymlfile (Default:primary,secondary).- alpha
(Optional) A number between
0and1indicating the alpha (transparency) of the color mix (Default:0.5).
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"
#> [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"
#> [1] "#591E23" "#B23D46" "#D89EA2" # Expected
