Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

A port of the Processing visualization language to JavaScript.

License

NotificationsYou must be signed in to change notification settings

processing-js/processing-js

Repository files navigation

For the project website, visithttp://processingjs.org

This is the compilation repository for Processing.js, used in building theprocessing.js library from a series of Node.js flavoured commonjs modules, rather than existing as one large file as was the case in all versions up to and including 1.4.1 (released august 2012) .

note: this is not the repository for Processing, the language and IDE. Processing itself is hosted over athttps://github.com/processing/processing. This is also not where to file bugs or ask questions about the "JS mode" that can be used with Processing, that project is hosted over athttps://github.com/fjenett/javascript-mode-processing

Versioning

Processing.js adheres tosemver style versioning, with the current version being 1.6.0 (released July 9th, 2016)

This project is currently in need of developers

There is currently no one working on, or maintaining, this codebase on a regular basis, so if you think you'd like to contribute to Processing.js, to bring it back in line with Processing's current API, and take advantage of the various APIs that have become available in browsers since Processing.js slowed down, we'd love to hear from you!

File an issue to say that you'd like to help out, and we can find some good places for you to get started.

Getting Processing.js

Bower install

bower install Processing.js

NPM install

npm install processing-js

Getting Processing.js the plain way

Simply grab theprocessing.js orprocessing.min.js files, include them as script on your webpage, and you're all set. Seetest.html for a simple example of using Processing.js on your pages.

Playing with the code

Clone this project using git, and ensure you havenode.js installed. After cloning, install the require node packages usingnpm install in the processing-js directory. Modifying the code and building your ownprocessing.js andprocessing.min.js files is then a fairly straight forward process. Modify the code as much as you want or need, then:

  1. Lint:$> grunt
  2. Test:$> node test

If step 1 gives you a "grunt: command not found" or similar error, runnpm install -g grunt-cli to make sure grunt is globally installed as CLI command. If step 1 does not throw any errors, step 2 will run the Processing object through a battery of tests. Once the browser reference tests start, yourprocessing.js andprocessing.min.js have been successfully built.

The test script also accepts the following optional arguments:

  • --test=testfile.pde runs one specific test
  • --nobuild does not build Pjs if all tests pass
  • --failonerror terminates the run if any error occurs.
  • --noref will not start a server process and a browser for doing ref testing.
  • --noautoref will start a server and a browser for ref testing, but doesn't auto-start the tests.

Manual operations

You can also perform the post-unit-test steps manually:

  • Build processing.js:$> browserify build.js -o processing.js
  • Minify processing.js:$> node minify
  • Run test server:$> node server

While the browser tests run

With the test server is running, the following urls are good to know:

Contributing to Processing.js

Please read"how to contribute to Processing.js" for how you can contribute, and what code of conduct is expected to be followed.

About

A port of the Processing visualization language to JavaScript.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp