node
node copied to clipboard
Run PixiJS but in Node.js environments, no browser required!
Is this not added yet? Only `toDataURL` available now?
Now that PIXI.js v8 is stable, it is time to migrate.
See https://github.com/stackgl/headless-gl/issues/271#issuecomment-1974254296.
```js import { Application, Assets, Text } from '@pixi/node'; await Assets.init(); const app = new Application(); app.stage.addChild(new Text('test')); app.renderer.render(app.stage); ``` Stuck forever with @pixi/node 7.2.0 on Linux.
`@pixi/extract` 7.2.4 uses `ImageData` (introduced in commit [242eac](https://github.com/pixijs/pixijs/commit/242eac69b9d80a0ca5fce11dde396daf8cc13986)): https://github.com/pixijs/pixijs/blob/v7.2.4/packages/extract/src/Extract.ts#L153 We need to polyfill this object correctly to the `ImageData` provided by node-canvas. This bug is similar to #4 because they...
Can we support @napi-rs/canvas? It 0 System dependencies! https://www.npmjs.com/package/@napi-rs/canvas
I'm running PixiJS node in a Docker container, based on the example Dockerfile via xvfb. My app provides a HTTP endpoint which simply generates an image. After every request I'm...
To reproduce: ```shell npm install @pixi/node apt remove librsvg2-dev # On Debian/Ubuntu; use other commands on other platforms npm rebuild canvas --build-from-source vim test.mjs ``` ```js // test.mjs import {...
I think this is a fair enough change? It is simple enough, so I did not open an issue but opened a pull request directly. Sometimes I need to specify...
 this font color is #fff ```js const { writeFileSync } = require('fs'); const { Application, Text } = require('@pixi/node'); const Jimp = require('jimp'); const app = new Application({ width:...