Press escape to exit fullscreen

{{sketch.instructions}}

CC {{sketch.licenseObject.short}}

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Capture Screenshot

spxlImageMasks

{{$t('general.by')}}
Demonstration of use of PImage.mask() to paint images with transparent parts. This sketch doesn't seem to behave nicely as an applet possibly due to loading 30 images (using requestImage()) in setup(). ("Out of heap space") CONTROLS [SPACE] toggle paused [TAB] toggle ("debug") panel [1234567] random image for layer 1-7 [qwertyu] random mask for layer 1-7 [asdfghj] toggle active state for layer 1-7 [+]/[-] increase/decrease number of layers in use The above keyboard commands can all be achieved by mouse position and clicking: - right click for pause - click near bottom of mask t
We recovered an unsaved version of this sketch. Please review your changes below.

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}
    {{$t('sketch.mode-pjs')}} {{$t('general.learnMore')}}
    Select mode or a template
    {{liveCodeLink}}
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}
    {{$t('sketch.layoutDescription')}}

    {{k.category}}
    {{k.label}}
    {{k.description}}

    {{$t('sketch.seeMoreShortcuts')}}

    Versions are only kept for 7 days.
    Join Plus+ to keep versions indefinitely!

    {{$t('general.joinPlus')}}


    {{$t('sketch.versionsSummarized')}}