Phenomenon-px is the fastest way to create pixel shaders. With its simple API and small size all focus is on your code!
$ npm install --save phenomenon-px
// Import the library
import Phenomenon from 'phenomenon-px';
// Create the pixel shader
Phenomenon(fragment, uniforms, render, canvas);
Creates a new instance of Phenomenon-px.
Type: string
The fragment shader that will be applied to all pixels on the canvas.
Type: Object
An object with uniforms that can be used in the shader program.
Type: function
A function that is called on every frame that can be used to update uniforms.
Type: HTMLElement
Default: document.querySelector('canvas')
The canvas that will be used to render the shaders on.
Are you excited about this library and have interesting ideas on how to improve it? Contribute! 🙌
$ npm install; npm run demo;
MIT © Colin van Eenige