mixCol: Linearly mix two colors given some weights.

View source: R/colors.R

mixColR Documentation

Linearly mix two colors given some weights.

Description

Returns a weighed mixed average of the two input colors. Adds an alpha channel if not already present.

Usage

mixCol(a = "#41ffc9", b = "#1d7791", balance = c(1, 1))

Arguments

a

an RGB color string

b

an RGB color string

balance

two weights, one for each color, default: c(1,1)

Value

An RGB color string.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.