Helper functions for color transformation Effects.
References:
Members
(static) tmpPixel
Apply color effects to an ImageData
Methods
(static) applyToPixel(pixel, effect, result)
Apply color effects to a single pixel
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
pixel |
vec4 | Values in range [0,1] |
|||||||||
effect |
Object |
Properties
|
|||||||||
result |
vec4 | Object to store result |
(static) identity(result)
A vector and matrix corresponding to an identity transformation.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
result |
Object | Object to store result Properties
|