{"library":"processing-to-p5js","title":"processing-to-p5js","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install processing-to-p5js"],"cli":{"name":"processing-to-p5js","version":null}},"imports":["import { transformCode } from 'processing-to-p5js'","import { transformProcessing } from 'processing-to-p5js'","import { isStaticModeSketch } from 'processing-to-p5js'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { transformProcessing } from 'processing-to-p5js';\n\nconst processingCode = `\nvoid setup() {\n  size(400, 400);\n  background(220);\n}\n\nvoid draw() {\n  ellipse(mouseX, mouseY, 20, 20);\n}\n`;\n\nconst p5jsCode = transformProcessing(processingCode);\nconsole.log(p5jsCode);","lang":"typescript","description":"Transpile a simple Processing sketch with setup() and draw() to p5.js code.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}