Press escape to exit fullscreen


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


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('',["mouse, keyboard"])}}
{{$t('',["visualization, fractal, mouse"])}}
{{$t('general.learnMoreAbout')}} Creative Commons
  • {{v.title}}

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

  • {{co.title}}