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

Random vs noise

{{$t('general.by')}}
This program studies what happens when you map noise() or random() to hue. random() covers the whole spectrum and you get all kinds of hues. noise() does not cover the whole spectrum. Reds, oranges and yellows are missing. snoise(), a custom function, tries to improve this by stretching the noise() values. But red is still missing. wnoise() wraps the noise values several times using modulo, and gives a flatter distribution. All hues are present. Sketch from April 2012 ported to JavaScript (I no longer run Java in my browser).
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')}}