color_sum: Mix two colors additively in RGB space

Description Usage Arguments Value Examples

View source: R/color.R

Description

Mix two colors additively in RGB space

Usage

1
color_sum(col1, col2)

Arguments

col1

A hex or R color

col2

Another hex or R color

Value

The sum of col1 and col2 as a character hex color (e.g. "#FFFFFF")

Examples

1
2
3
color_sum("red","green")

color_sum("#1B9E77","#D95F02")

AllenInstitute/scrattch documentation built on Jan. 27, 2021, 11:45 a.m.