Random Walker Take Two



Another take on getting p5.js to behave using the random walker.


First, make a div to contain the javascript.

<script language="javascript" type="text/javascript" src='random-walker-vectorized.js'></script>
<div id="random-walker-vectorized">

System Message: ERROR/3 (<string>, line 29)

Unknown directive type "listings".

.. listings:: random-walker-vectorized.js
   :code: javascript


The big thing that fixed the positioning of the canvas was that I was putting the line to include the javascript inside the div where it was supposed to render. Keeping the div for the canvas empty fixed it.