mean_col: Compute average color

Description Usage Arguments Details Value Examples

View source: R/mean_col.R

Description

mean_col() computes an average color.

Usage

1

Arguments

...

Colors to average

Details

We currently compute an average color by using the quadratic mean of the colors' RGBA values.

Value

A color string of 9 characters: "#" followed by the red, blue, green, and alpha values in hexadecimal.

Examples

1
2
3
 mean_col("black", "white")
 mean_col(c("black", "white"))
 mean_col("red", "blue")

gridpattern documentation built on July 17, 2021, 9:07 a.m.