Search documentation

Find a vivid-layer page or product.

Paper Texture

A procedural paper surface that adds fibers, folds, crumples, and tactile depth to images.

pnpm dlx shadcn@latest add @vivid-layer/paper-texture
Source image

Customize

Contrast
0.3
Roughness
0.4
Fiber
0.3
Fiber Size
0.2
Crumples
0.3
Crumple Size
0.35
Folds
0.65
Fold Count
5
Drops
0.2
Fade
0
Seed
5.8
Scale
0.6

API reference

The wrapper adds playback and runtime safeguards while preserving the complete Paper PaperTexture API. See the Paper Paper Texture reference for the full prop table and accepted ranges.

PropTypeDefaultDescription
imagestring | HTMLImageElementundefinedOptionally supplies the source image. Without one, Paper renders its procedural default texture.
playback"auto" | "always" | "paused""auto"Controls motion policy. Auto pauses for reduced motion and while the shader is outside the viewport.
width / heightnumber | string"100%"Sets the canvas CSS dimensions. Size the parent element to establish the visible area.
maxPixelCountnumber2073600Caps the rendered pixel budget. Override only after measuring the target devices.

Credits

The rendering engine is Paper Shaders, distributed under the Apache License 2.0. The example image is Scott Webb's Banff landscape, released under CC0. vivid-layer supplies the adapter, playback and loading policies, documentation, and Registry packaging.