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

Fireworks Particle System

{{$t('general.by')}}
Controls: 1-9 to launch that number of firework(s) Any other key to launch a single firework 'c' to clear This is a simple particle system to make some fireworks. The definitions of the particles (i.e. size, color, actions such as spawning new particles) are read in from an xml document which can be seen here http://db.tt/WvfF41eM . This allows a lot of flexibility. Currently there are 3 type defined. The main firework and the 2 types that it creates when it explodes. Gaussian (normally distributed) numbers are heavily used for calculating distances and speeds of particles.
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')}}