Press escape to exit fullscreen

{{sketch.instructions}}

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Click capture
to take a screenshot

Attract2D

{{$t('general.by')}}
This example demonstrates how to use the behavior handling (new since toxiclibs-0020 release) and specifically the attraction behavior to create forces around the current locations of particles in order to attract (or deflect) other particles nearby. Behaviors can be added and removed dynamically on both a global level (for the entire physics simulation) as well as for individual particles only. Usage: Click and drag mouse to attract particles
{{$t('general.eg',["mouse, keyboard"])}}
{{$t('general.eg',["visualization, fractal, mouse"])}}
{{$t('general.learnMoreAbout')}} Creative Commons
{{$t('general.joinPlus')}}
{{$t('sketch.sourceNotVisible')}}
{{$t('sketch.privateURLDescription')}}
{{$t('sketch.privateURL-pleaseSave')}}
  • {{v.title}}

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}