component
Rug
Procedural striped rug (seeded stripes, no textures).
Add it
npx runek add rug
Pulls core.
Use it
import { Rug } from './runek/Rug'
<Rug position={[0, 0, 0]} seed={1} />
Props
export interface RugProps {
position?: Vec3
rotation?: Vec3
/** `[width, depth]` in units. */
size?: [number, number]
/** Defaults to the world palette's `fabric` slot. */
baseColor?: string
/** Defaults to the world palette's `accent` slot. */
borderColor?: string
accentColor?: string
seed?: number
}
See it live with editable props in the gallery →.