Learn R Programming

Seurat (version 5.0.3)

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)

Value

A vector of intensities/luminances for each color

Arguments

color

A vector of colors

Examples

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

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

Run the code above in your browser using DataLab