Tất cả hình nền
Vân loang
Perlin NoiseDùng trong mã React
1. Cài thư viện
npm i @udemi/hinh-nen2. Dán thành phần vào trang
import { PerlinNoise } from "@udemi/hinh-nen"; export function HinhNen() { return ( <PerlinNoise colorBack="#632ad5" colorFront="#fccff7" proportion={0.35} softness={0.1} octaveCount={1} persistence={1} lacunarity={1.5} speed={0.5} scale={1} rotation={0} offsetX={0} offsetY={0} style={{ width: "100%", aspectRatio: "16 / 9" }} /> ); }
Hiệu ứng dựng bằng Paper Shaders của Paper, giấy phép Apache 2.0.