美文网首页
151128-processing 与 p5.js的区别

151128-processing 与 p5.js的区别

作者: wenchaohe | 来源:发表于2015-11-28 10:06 被阅读1401次

因为你可能把你的素描不单单当作绘图的画布,故size()方法已经被createcanvas()方法取代,以此说明还可以创建其他元素。P5.js通过将画布从一个单一的桌面应用扩展到浏览器的方式,开启了Processing的强大能力。




http://www.sitepoint.com/processing-js-vs-p5-js-whats-difference/?utm_source=tuicool

1-Processing is an environment/programming language that is meant to make visual, interactive applications extremely easy to write. It can be used for everything from teaching children how to code to visualizing scientific data.

2-p5 is made to make coding accessible for artists, designers, educators, and beginners, and reinterprets this for today’s web

P5 is a direct JS port of the Processing language. Processing.js is a converter which interprets pure Processing code into JS on the fly. The latter requires you to learn Processing, but not JS, and vice versa.


P5js is a young and ambitious project that aims to bring visual programming to the masses in a manner more approachable than Processing was until now. While it is currently being forced to be dumbed down somewhat feature-wise, the team is hard at work porting the rest of the Processing language to this JS counterpart.

The advantages of using P5 over Processing.js are:

Writing JS code you’re probably already familiar with

Officially supported by the Processing Foundation

HTML DOM manipulation with the DOM library addon – adding common HTML elements to your P5 sketches and more

Lighter on the resources when not drawing

The advantage of using Processing.js:

You learn Processing and can use it in environments where it’s faster and more portable to non-web environments

Seems to have a steadier frame rate and performs better in both demos we tried

相关文章

  • 151128-processing 与 p5.js的区别

    因为你可能把你的素描不单单当作绘图的画布,故size()方法已经被createcanvas()方法取代,以此说明还...

  • 2020-08-30绘制小汽车

    代码 p5.js介绍 p5.js is a JavaScript library for creative cod...

  • p5.js 使用npm安装p5.js后如何使用?

    本文简介 点赞 + 关注 + 收藏 = 学会了 在 《p5.js 光速入门》[https://juejin.cn/...

  • 使用 p5.js 绘制图形

    使用 p5.js 绘制图形 原文链接:http://blog.ccyg.studio/article/9a1514...

  • p5.js 光速入门

    本文简介 点赞 + 关注 + 收藏 = 学会了 本文的目标是和各位工友一起有序的快速上手 p5.js[https:...

  • p5.js 光速入门

    本文简介 点赞 + 关注 + 收藏 = 学会了 本文的目标是和各位工友一起有序的快速上手 p5.js[https:...

  • 单词辨析

    germ与bacteria区别 a few 与 few 区别

  • 人生一世

    要分清好人与坏人的区别 好男人与坏男人的区别 好女人与坏女人的区别

  • iOS 多线程提升

    1.NSOprationQueue 与 GCD 的区别与选用? NSOprationQueue 与 GCD 的区别...

  • 面试题

    title 与 h1 的区别、b 与 strong 的区别、i 与 em 的区别? title 属性没有明确意义只...

网友评论

      本文标题:151128-processing 与 p5.js的区别

      本文链接:https://www.haomeiwen.com/subject/xawdhttx.html