Press escape to exit fullscreen


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

Heat Distribution

Simulation of the distribution of heat in a simple system. Each pixel represents a single "heat" value. Each pixel is updated by averaging the amount of heat around it, thus the heat will flow to cooler areas. The value is then translated into a color from the color gradient (which makes it look ten times cooler). I broke out the gradient into its own separate class in case someone finds it useful. Left Mouse: Apply heat Right Mouse: Remove heat
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
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}



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