Diffrences between Processing.js and P5.js

From processing/p5.js

repository at https://github.com/processing/p5.js/wiki/Frequently-Asked-Questions
Use of .parent() function call where you want sketch() to run in index.html.

Bruno skrovic explains as below:

Processing.js creates processing.pde file to be run on index.html, which includes the following:

<head>
  http://../processing.min.js
</head>

<body>
    <canvas data-processing-sources="sketch.pde"></canvas>
</body>

p5.js creates sketch.js file to be run on index.html, which includes the following:

http://../p5.js
  <!-- uncomment lines below to include extra p5 libraries -->
    <!--http://../addons/p5.dom.js-->
  <!--http://../addons/p5.sound.js-->
  http://sketch.js

Read further of his analysis at https://www.sitepoint.com/processing-js-vs-p5-js-whats-difference/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s