paint_color: Creates an object of class "color" from a mixture of paint...

Description Usage Arguments Value Examples

Description

Creates an object of class "color" from a mixture of paint primary colors (YMCK palette)

Usage

1
paint_color(y, m, c, k = 0, maxVal = 255)

Arguments

y

Amount of yellow paint

m

Amount of magenta paint

c

Amount to cyan light

k

Amount of black paint. Defaults to 0

maxVal

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

Value

An object of class color.

Examples

1
2
3
paint_color(255,255,0)
paint_color(255,255,0,128)
paint_color(0, 1, 1, maxVal=1)

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