CSS Houdini paint worklet for generating noise textures.
https://kamide.github.io/css-houdini-noise/
Properties can be imported from ./src/noise.js.
export const inputProperties = [
{
name: '--noise-size',
syntax: '<integer>',
inherits: false,
initialValue: 1,
},
{
name: '--noise-shape',
syntax: 'square | circle',
inherits: false,
initialValue: 'square',
},
{
name: '--noise-hue',
syntax: '<integer>+',
inherits: false,
initialValue: 0,
},
{
name: '--noise-saturation',
syntax: '<percentage>+',
inherits: false,
initialValue: '0%',
},
{
name: '--noise-lightness',
syntax: '<percentage>+',
inherits: false,
initialValue: '40% 60%',
},
{
name: '--noise-alpha',
syntax: '<number>+',
inherits: false,
initialValue: 1,
},
];
To register the paint worklet, import ./src/register.js as a module.