1. Peter Hosey
  2. BitTorrent simulation


Peter Hosey  committed f43809a

Markup fix.

  • Participants
  • Parent commits 6a2c622
  • Branches default

Comments (0)

Files changed (1)

File bt.html

View file
   <p>You can use the 's' and 'p' keys to add new seeds and peers to the swarm. Hitting 'r' will remove one of the seeds or peers at random, but it takes a few seconds before it activates, just like the original.</p>
   <p>This visualization originally started off at <a href="http://aphid.org/btsim/">aphid.org</a> but that site doesn't seem to be up anymore. Jeff Atwood <a href="http://www.codinghorror.com/blog/2007/02/everybody-loves-bittorrent.html">updated it to work with more recent versions of Processing</a> (notably the 1.0 release which is theoretically API-stable and compatible with future versions). Once I saw <a href="http://processingjs.org/">processing.js</a>, I knew that I had to get this working in it.</p>
   <p>Works in pretty much any modern browser except IE (because IE doesn't have support for the &lt;canvas&gt; tag).</p>
-  <p>Changes, if you're curious:
+  <p>Changes, if you're curious:</p>
   <li>processing.js was missing ArrayList.contains() so I <a href="http://github.com/clee/processing-js/commit/d5f441d20d921d6fdaa6874cd886b5472beba313">implemented it</a></li>
   <li>processing.js didn't implement <a href="http://processing.org/reference/screenX_">screenX</a>() or <a href="http://processing.org/reference/screenY_">screenY</a>() so I had to calculate things manually with cos() and sin()</li>
-  </p>