Retrieve or set the quantity of a colorSpec object.
# S3 method for colorSpec
quantity(x)# S3 method for colorSpec
quantity(x) <- value
# S3 method for colorSpec
type(x)
quantity() returns the quantity of x
type() returns the type of x, which depends only on the quantity.
a colorSpec R object
a valid quantity string; see 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.
colorSpec,
radiometric,
linearize