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

Week 2 Drawing Program - Grayscale Polygons

{{$t('general.by')}}
You will need to copy and paste this into a new file on your own machine, some of this cannot run within a browser. Controls: Spacebar: Begins a new polgyon, subsequent mouse clicks will place points, and hitting spacebar a final time will close the shape automatically. Color is determined by the X value of your cursor at the time when you press spacebar. Position your mouse before clicking to choose your color. Tab: Saves a JPG with the date and time of your sketch.
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')}}