colour.linear_function#

colour.linear_function(a: FloatingOrArrayLike) FloatingOrNDArray[source]#

Define a typical linear encoding / decoding function, essentially a pass-through function.

Parameters

a (FloatingOrArrayLike) – Array to encode / decode.

Returns

Encoded / decoded array.

Return type

numpy.floating or numpy.ndarray

Examples

>>> linear_function(0.18)  
0.1799999...