example-p5-animation
Installation
SKILL.md
P5.js Animation
Integrate P5.js with Helios by using P5's Instance Mode and driving the draw() loop via Helios's state.
Quick Start
import { Helios } from '@helios-project/core';
import p5 from 'p5';
const helios = new Helios({ duration: 10, fps: 60 });
const sketch = (p: p5) => {
p.setup = () => {
p.createCanvas(1920, 1080);
p.noLoop(); // Disable P5's internal loop
};