← Previous Next →

Scrawl-canvas v8 - Filters test 037

Test various channel-alpha filters

To change image, drag-and-drop an image file over the canvas

Memoize filter
Screen capture image of the demo canvas

To note: Javascript is not running in this browser environment. The canvas element is ignored; instead a placeholder image displays where the canvas would have appeared.

Test purpose

The filters applied to each Picture entity are as follows:
  1. luminanceToAlpha
  2. luminanceToAlpha → alphaToLuminance
  3. channelsToAlpha → flood (to black)
  4. channelsToAlpha → flood (to black) → alphaToChannels
  5. gray
  6. grayscale

Touch test: not required

Annotated code