Installation
Install the component
Run the following command to install the component and its dependencies:
Import the component
Import the component into your Svelte file:
Usage
Props
0.500
Canvas
A generative organic pattern using Compositional Pattern Producing Networks (CPPN).
npx @motion-core/cli add neural-noisenpx @motion-core/cli add neural-noiseimport { NeuralNoise } from "$lib/motion-core";import { NeuralNoise } from "$lib/motion-core";<script lang="ts">
import { NeuralNoise } from "motion-core";
import type { ComponentProps } from "svelte";
type Props = Partial<ComponentProps<typeof NeuralNoise>>;
let { speed = 0.5 }: Props = $props();
</script>
<NeuralNoise {speed} class="h-full min-h-96 w-full" />
<script lang="ts">
import { NeuralNoise } from "motion-core";
import type { ComponentProps } from "svelte";
type Props = Partial<ComponentProps<typeof NeuralNoise>>;
let { speed = 0.5 }: Props = $props();
</script>
<NeuralNoise {speed} class="h-full min-h-96 w-full" />
| Prop | Type | Default |
|---|---|---|
speed | number | 1.0 |
class | string | "" |