Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 365 Bytes

readme.md

File metadata and controls

27 lines (23 loc) · 365 Bytes

xen

jsx and generators for p5.js

xen(function*(_) {
  let ctr = 0;
  yield <scene background={0} noStroke />;

  while (true) {
    yield (
      <rect
        x={a++ % _.width}
        y={10}
        width={2}
        height={80}
        fill={102}
        stroke="red"
      />
    );
  }
});
  • hot reloading
  • iterable components
  • proper types