Document.filters - Marcotrombino/Pandora2 GitHub Wiki

@property Document.filters

Filters methods

@global object : Document

@properties : @methods

Name Type Description
data Array Canvas data before being processed
🔴 params Array filter parameters
@return : data Array Canvas data after being processed

@properties:

  • @method: grayscale
Name Type Value Description
🔴 alpha (optional) Number 0 to 1 Alpha value
  • @method: sepia
Name Type Value Description
🔴 alpha (optional) Number 0 to 1 Alpha value
  • @method: noise
Name Type Value Description
🔴 value Number 0 to 255 Noise value
🔴 alpha (optional) Boolean true/false Alpha channel flag
  • @method: invert
Name Type Value Description
🔴 R (optional) Boolean true/false Red channel invert flag
🔴 G (optional) Boolean true/false Green channel invert flag
🔴 B (optional) Boolean true/false Blue channel invert flag
🔴 intensity (optional) Number 0 to 255 Active channel intensity (0 to 255)
  • @method: sharpen
Name Type Value Description
🔴 alpha (optional) Number 0 to 1 Alpha value
  • @method: sharpen2
Name Type Value Description
🔴 alpha (optional) Number 0 to 1 Alpha value
  • @method: HDR
  • @method: sepia2
  • @method: emboss
  • @method: boxBlur
  • @method: gaussianBlur
  • @method: edge1
  • @method: edge2
  • @method: edge3
  • @method: motionBlur