color_sum: Mix two colors additively in RGB space

View source: R/color.R

color_sumR Documentation

Mix two colors additively in RGB space

Description

Mix two colors additively in RGB space

Usage

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

color_sum("red","green")

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

AllenInstitute/scrattch documentation built on March 6, 2025, 2:09 a.m.