Usage
get_brand_color_mix(
position = 500,
color_1 = "primary",
color_2 = "secondary",
alpha = 0.5
)
Arguments
- position
(Optional) A
numeric
vector indicating the position of the brand color in the range of tints. The range of positions is from0
to1000
(Default:500
).- color_1, color_2
(Optional) A
character
string indicating the name of a color present in thecolor
section of the_brand.yml
file (Default:primary
,secondary
).- alpha
(Optional) A number between
0
and1
indicating 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