incrementHex: Adjust color vector

View source: R/human_functions_rename.r

incrementHexR Documentation

Adjust color vector

Description

Note: This function is an internal function

Usage

incrementHex(col, r = 0, g = 0, b = 0)

Arguments

col

a vector of colors (in a format compatable with col2rgb)

r

integer value to increment red (-255 to 255)

g

integer value to increment green (-255 to 255)

b

integer value to increment blue (-255 to 255)

Value

a vector with all colors adjusted by the r, g, b integer values and in #xxxxxx format.


AllenInstitute/scrattch.hicat documentation built on Oct. 20, 2023, 6:55 a.m.