A transpiler that converts Processing (Java) source code to p5.js (JavaScript). Current stable version 0.1.3 transforms syntax like void functions, size(), and Processing APIs into p5.js equivalents. Released as an early-stage tool with TypeScript type declarations. Suitable for migrating Processing sketches to the browser. Does not cover all Processing features; manual adjustments may be needed.
npm install processing-to-p5jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile a simple Processing sketch with setup() and draw() to p5.js code.
Review output for untranslated functions and manually implement p5.js equivalents.
Rewrite complex Java patterns manually.
Prefer transformProcessing() for full transformation.
Use named import: import { transformProcessing } from 'processing-to-p5js'Run 'npm install processing-to-p5js' and ensure 'moduleResolution' is 'node16' or 'bundler' in tsconfig.json.
No dependency data recorded yet.