@microfox/coloruse
v1.2.0
Published
A TypeScript SDK for Coloruse.
Readme
Coloruse
A TypeScript SDK for extracting and manipulating colors from images.
Installation
npm install @microfox/coloruseQuick Start
import { ColorPicker } from '@microfox/coloruse';
// Initialize the Color Picker
const colorPicker = new ColorPicker();
// Extract palette from an image URL
const { palette, dominantColor } =
await colorPicker.extractPaletteFromImageData(
'https://example.com/image.png'
);
console.log('Palette:', palette);
console.log('Dominant Color:', dominantColor);API Reference
- ColorPicker - For extracting color palettes from images.
- ColorUtility - For color conversions and manipulations.
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Lint code
npm run lintLicense
MIT
