colorSpec (version 1.5-0)

quantity: quantity of a colorSpec object

Description

Retrieve or set the quantity of a colorSpec object.

Usage

# S3 method for colorSpec
quantity(x)

# S3 method for colorSpec quantity(x) <- value

# S3 method for colorSpec type(x)

Value

quantity() returns the quantity of x

type() returns the type of x, which depends only on the quantity.

Arguments

x

a colorSpec R object

value

a valid quantity string; see Details.

Details

There are 4 valid types, which are further divided into 14 valid quantities. All of these are strings:

For type='light'
quantity = 'energy' (radiometric), or 'photons' (actinometric)

For type='responsivity.light'
quantity = 'energy->electrical', 'energy->neural', 'energy->action',
'photons->electrical', 'photons->neural', or 'photons->action'

For type='material'
quantity = 'reflectance', 'transmittance', or 'absorbance'

For type='responsivity.material'
quantity = 'material->electrical', 'material->neural', or 'material->action'

Also see the colorSpec User Guide.

See Also

colorSpec, radiometric, linearize