colour.utilities.zeros#

colour.utilities.zeros(shape: int | Sequence[int], dtype: Type[DTypeReal] | None = None) → NDArray[source]#

Create an array of zeros with the active dtype.

Wrap np.zeros() definition to create an array with the active numpy.dtype defined by the colour.constant.DTYPE_FLOAT_DEFAULT attribute.

Parameters:
Returns:

Array of the specified shape and numpy.dtype, filled with zeros.

Return type:

numpy.ndarray

Examples

>>> zeros(3)
array([0., 0., 0.])