stalgiag / p5.xr

a library that helps turn p5.js sketches into immersive experiences using WebXR
GNU Lesser General Public License v2.1
117 stars 25 forks source link

feat: createCanvas api to init session #235

Closed TiborUdvari closed 2 months ago

TiborUdvari commented 2 months ago

Example:

// Create AR canvas
createCanvas(windowWidth, windowHeight, AR); 

or

createCanvas(windowWidth, windowHeight, VR);
TiborUdvari commented 2 months ago

Forgot to add jsdoc to function declaration, will do later