How to translate a sketch in javascript

edited March 2017 in JavaScript Mode

Hi there, i trying to translate a sketch in javascript with processing.js, without result, in the same directory there is processing.js, my pde file and the html. But i can't get the conversion yet.

is it correct for include processing.js? "processing-1.0.0.min.js"

Could some one help me? Thanks a lot

Tagged:

Answers

  • edited September 2017

    Minimum template for Pjs library: ~O)

    "index.html":

    <script async src=http://CDN.JSDelivr.net/processing.js/latest/mainfile></script>
    <canvas data-processing-sources=sketch.pde></canvas>
    
Sign In or Register to comment.