pth_n_color: Number of colors

View source: R/n_color.R

pth_n_colorR Documentation

Number of colors

Description

Number of colors

Usage

pth_n_color(color, ...)

## Default S3 method:
pth_n_color(color, ...)

## S3 method for class 'character'
pth_n_color(color, ...)

## S3 method for class 'pth_hex'
pth_n_color(color, ...)

## S3 method for class 'pth_mat'
pth_n_color(color, ...)

Arguments

color

character or matrix with S3 class pth_mat, a representation of a color.

...

other args (not used)

Value

integer number of colors

Examples

  pth_n_color(c("#000000", "#663399", "#FFFFFF"))

ijlyttle/colorpath documentation built on Sept. 13, 2022, 7:44 p.m.