p5.js

p5.js是一个客户端JS平台,它使艺术家,设计师,学生和任何人都能够学会在网络上创造性地编码和表达自己。 它基于Processing的核心原则。(p5.js is a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing. )

Github stars Tracking Chart

p5.js

您好! p5.js是一个JavaScript库,以Processing的最初目标开始,使艺术家、设计师、教育工作者和初学者可以访问编码,并对今天的 web 进行重新解释。

使用软件速写本的原始比喻,p5.js具有一整套绘图功能。但是,你并不局限于你的绘图画布,您可以将整个浏览器页面视为草图!为此,p5.js具有插件库,可以轻松与其他HTML5对象进行交互,包括文本、输入、视频、网络摄像头和声音。

p5.js是一种新的解释,而不是仿真或移植,它正在积极开发中。官方编辑环境即将推出,还有更多功能!

如果您已经了解JavaScript或Processing的基础知识,请p5.js概述维基页面是一个很好的起点。

如果您在p5.js库中发现了错误,可以在“问题”标签将其归档。 提供报告问题的指示性模板,以帮助您(和我们!)更好。

p5.js library

要使用完整的p5.js库,您可以在此处下载。如果您对最新的、不太稳定的版本感兴趣,或者甚至只是(新!)p5.js的某些组件,您可以克隆此存储库并运行 grunt 从命令行从源生成库。有关我们的构建过程的更多信息,请参阅开发人员文档,以生成完整的以及选择性的库。

您还可以从 codepen模板开始。您可能需要更新链接到html部分的p5.js库的版本。

社区维护的typescript定义为此处

问题

请在正确的存储库中发布错误:

学习

查看 p5js.org 了解更多信息!以下是一些快速链接:

  • 使用入门:创建并运行第一个草图!
  • p5.js概述 - p5主要特性和功能概述的.js。
  • 参考:p5.js支持的功能。
  • 学习:探索p5.js基础知识的教程和简短的原型示例。
  • 论坛:询问并回答有关如何使用p5.js制作内容的问题。
  • 图书馆:扩展p5功能,与HTML互动,操纵声音等等!

参与

p5.js是由许多人创建的合作项目,欢迎您提供帮助。欢迎所有类型的参与。请参阅 社区部分开始使用!

开发人员,请查看 开发人员文档,了解有关贡献代码的更多详细信息,错误修复和文档。

Overview

Name With Ownerprocessone/ejabberd
Primary LanguageErlang
Program languageJavaScript (Language Count: 14)
PlatformWeb browsers
License:Other
Release Count106
Last Release Name24.02 (Posted on 2024-02-27 10:34:39)
First Release Namev0.1.0 (Posted on 2010-02-03 15:10:10)
Created At2010-02-08 10:37:25
Pushed At2024-05-10 15:20:32
Last Commit At2024-05-10 16:04:28
Stargazers Count5.9k
Watchers Count274
Fork Count1.5k
Commits Count9.4k
Has Issues Enabled
Issues Count3326
Issue Open Count184
Pull Requests Count500
Pull Requests Open Count10
Pull Requests Close Count203
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

npm version

p5.js

Hello! p5.js is a JavaScript library that starts with the original goal of Processing, to make coding accessible for artists, designers, educators, and beginners, and reinterprets this for today's web.

Using the original metaphor of a software sketchbook, p5.js has a full set of drawing functionality. However, you're not limited to your drawing canvas, you can think of your whole browser page as your sketch! For this, p5.js has addon libraries that make it easy to interact with other HTML5 objects, including text, input, video, webcam, and sound.

p5.js is a new interpretation, not an emulation or port, and it is in active development. An official editing environment is coming soon, as well as many more features!

If you already know the basics of JavaScript or Processing, the p5.js overview wiki page is a good place to start.

If you have found a bug in the p5.js library, you can file it here under the “issues” tab. An indicative template for reporting an issue is provided to assist you (and us!) better.

p5.js library

To use the complete p5.js library, you can download it here. If you are interested in the most recent, less stable version, or even simply in (new!) certain components of p5.js, you can clone this repository and run grunt from the command line to generate the library from source. See the developer docs for more information about our build process to generate the complete as well as selective library.

You can also start with the codepen template. You may need to update the version of the p5.js library that is linked into the html section.

Community maintained typescript definitions are here.

Issues

Please post bugs in the correct repository:

Learning

Check out p5js.org for lots more! Here are some quick-links:

  • Get Started: Create and run your first sketch!
  • p5.js overview — An overview of the main features and functionality of p5.js.
  • Reference: The functionality supported by p5.js.
  • Learn: Tutorials and short, prototypical examples exploring the basics of p5.js.
  • Forum: Ask and answers questions about how to make things with p5.js here.
  • Libraries: Extend p5 functionality to interact with HTML, manipulate sound, and more!

Get Involved

p5.js is a collaborative project created by many individuals, and you are invited to help. All types of involvement are welcome. See the community section to get started!

Developers, check out the developer docs for more in-depth details about contributing code, bug fixes, and documentation.

Contributors

We recognize all types of contributions. This project follows the all-contributors specification. Instructions to add yourself or add contribution emojis to your name are here.

Thanks goes to these wonderful people (emoji key)!

To the top