Uint8ClampedArray constructor

init

Initializes a new instance of the Uint8ClampedArray class.

def __init__(self, length):
    ...
ParameterTypeDescription
lengthintThe length (number of elements).

init

Initializes a new instance of the Uint8ClampedArray class.

def __init__(self, data):
    ...
ParameterTypeDescription
databytesThe array data.

See Also