colorVector: Set Color Vector From Parameters

Description Usage Arguments

View source: R/dsmodel.R

Description

Outputs a color vector. If the combined length of col and image is 2, and iters is greather than 1, this function creates a gradient from first specified color to the second. The length of said vector will be equal to iters. If the combined length of col and image is greater than two, then the output will be a vector of whatever was input into col and image with output length being min(length(col) + length(image), iters).

Usage

1

Arguments

col

A vector or list of colors

image

A vector or list of colors

iters

A number indicating the number of iterations desired. If set to greater than 1, iters becomes the length of the output.


dsmodels documentation built on July 22, 2017, 9:02 a.m.