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

A Theif And a Policeman

{{$t('general.by')}}
This program is based on the example "FrameDifferencing". This clock is a clock gadget with a gaming function. As a theif, you are supposed to wave your hands or make some kind of action infront of the camera. The more you move, the faster the thief runs away from the police. If the theif is caught, the count meter at the center of the clock increments and shows the total number of arrests. Try not to be caught!! The specific function relies on the RGB of each pixel. Every time the frame renews, the program calculates the difference of each RGB value between the current and previous
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')}}