component
Rug
Procedural striped rug (seeded stripes, no textures).
Add it
npx @runek/cli add rug
Pulls @runek/core@^0.13.0.
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
}
Registry manifest
registry manifest /r/components/rug.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add rug fetches.
Browse the whole catalog in the gallery →.