color: Creates an object of class 'color'

Description Usage Arguments Value Examples

Description

Creates an object of class 'color'

Usage

1
color(..., maxVal = 255)

Arguments

...

A character containing a color name, a hexcode, a c(r,g,b) vector or three single numbers representing r,g,b respectively

maxVal

Value assigned to represent maximum amount of light. Defaults to 255

Value

An object of class "color" made from specifications given in the arguments

Examples

1
2
3
4
color(255,0,0)
color("magenta")
color(c(0,255,0))
color("#0000ff")

dpcarballo/coloR documentation built on June 1, 2019, 8:14 p.m.