lighter: lighter

Description Usage Arguments Details Value See Also Examples

View source: R/utils.R

Description

Given a color, return a lighter one

Usage

1
lighter(col, amount=150)

Arguments

col

(color) The original color

amount

(integer, [0-255]) The fixed amount to add to each RGB channel (Defaults to 150).

Details

Very simple utility function to create lighter colors. Given a color, it transforms it to rgb space, adds a set amount to all chanels and transforms it back to a color.

Value

A lighter color

See Also

darker

Examples

1
2
3
4
 
lighter("red")
lighter("#333333")
 

bernatgel/karyoploteR documentation built on Dec. 2, 2017, 1:16 a.m.