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

Ping Pong

{{$t('general.by')}}
Click on the Canvas to drop the "Ping Pong". The longer you hold your mouse key, the bigger the Ping Pong is. This is my Lesson 4 Project, after learning the concept of object, class and array. I struggled for long hours to get the "display()" function right, but no luck. I wanted the Ping Pong to keep the size after being generated by the mousePress(), and not to be affected by the next mousePress(). But instead the "display()" showing a flicker every time when the mouse is pressed. I found myself lacking of the programing process. I can't get the logic right before I sketch. All my lin
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')}}