Color Gradient Picker
Example
Usage
<script lang="ts">
import ColorGradientPicker from 'fuchs';
let colors = $state([
{ rgb: { r: 0, g: 0, b: 1 }, position: 0 },
{ rgb: { r: 1, g: 0, b: 0 }, position: 0.5 },
{ rgb: { r: 1, g: 1, b: 0 }, position: 1 }
]);
</script>
<ColorGradientPicker bind:colors />
Color Gradient Picker
Example
Usage
<script lang="ts">
import ColorGradientPicker from 'fuchs';
let colors = $state([
{ rgb: { r: 0, g: 0, b: 1 }, position: 0 },
{ rgb: { r: 1, g: 0, b: 0 }, position: 0.5 },
{ rgb: { r: 1, g: 1, b: 0 }, position: 1 }
]);
</script>
<ColorGradientPicker bind:colors />