blendcolors: Blend colors

View source: R/SCP-plot.R

blendcolorsR Documentation

Blend colors

Description

This function blends a list of colors using the specified blend mode.

Usage

blendcolors(colors, mode = c("blend", "average", "screen", "multiply"))

Arguments

colors

Color vectors.

mode

Blend mode. One of "blend", "average", "screen", or "multiply".

See Also

FeatureDimPlot

Examples

blend <- c("red", "green", blendcolors(c("red", "green"), mode = "blend"))
average <- c("red", "green", blendcolors(c("red", "green"), mode = "average"))
screen <- c("red", "green", blendcolors(c("red", "green"), mode = "screen"))
multiply <- c("red", "green", blendcolors(c("red", "green"), mode = "multiply"))
show_palettes(list("blend" = blend, "average" = average, "screen" = screen, "multiply" = multiply))


zh542370159/SCP documentation built on Nov. 22, 2023, 2:34 a.m.