Learn R Programming

Seurat (version 4.0.1)

contrast-theory: Get the intensity and/or luminance of a color

Description

Get the intensity and/or luminance of a color

Usage

Intensity(color)

Luminance(color)

Arguments

color

A vector of colors

Value

A vector of intensities/luminances for each color

Examples

Run this code
# NOT RUN {
Intensity(color = c('black', 'white', '#E76BF3'))

Luminance(color = c('black', 'white', '#E76BF3'))

# }

Run the code above in your browser using DataLab