HSL2RGB: Convert HSL coordinates to RGB

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

HSL2RGB Converts HSL coordinates to RGB.

Usage

1
HSL2RGB(HSLmatrix) 

Arguments

HSLmatrix

HSL coordinates

Value

RGB coordinates

Author(s)

Jose Gama

Source

Logicol S.r.l., 2014 EasyRGB color search engine http://www.easyrgb.com/

References

Logicol S.r.l., 2014 EasyRGB color search engine http://www.easyrgb.com/

Examples

1
2
3
HSL<-c(0.9590164, 0.3262032, 0.3666667)
HSL2RGB(HSL)
HSL2RGB(rbind(HSL,HSL,HSL,HSL,HSL))

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package:HmiscThe following objects are masked frompackage:base:

    format.pval, units

Loading required package: pracma

Attaching package:pracmaThe following object is masked frompackage:Hmisc:

    ceil

Loading required package: sp
           R            G            B 
   89.311480     6.027426 -1962.103784 
            R        G         B
[1,] 89.31148 6.027426 -1962.104
[2,] 89.31148 6.027426 -1962.104
[3,] 89.31148 6.027426 -1962.104
[4,] 89.31148 6.027426 -1962.104
[5,] 89.31148 6.027426 -1962.104

colorscience documentation built on Oct. 30, 2019, 9:33 a.m.