Skip to content

CSS Houdini paint worklet for generating noise textures.

Notifications You must be signed in to change notification settings

Kamide/css-houdini-noise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSS Houdini Noise

CSS Houdini paint worklet for generating noise textures.

Demo

https://kamide.github.io/css-houdini-noise/

Properties

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,
	},
];

Register

To register the paint worklet, import ./src/register.js as a module.

About

CSS Houdini paint worklet for generating noise textures.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published