Another rather random program using Threejs that displays a bunch of particles that forever travel around aimlessly. The particles use a simple algorithm using cosine and sin to caclulate their pathing and then go in the expected wave pattern. Rotations are also attached using triginometric methods that make quick movements seem random.

You can navigate slightly by holding down the left mouse button and dragging it. If you would like to see the code, click the JS tab in the example below.

See the Pen Particles by Bryan Jones (@bartuc) on CodePen.

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.