Node Color Mixer ๐จ
This is a simple node-based color mixing tool. I built it to play around with colors and see how they blend together using a cool interactive canvas. ๐โจ
Features ๐
- โญ Color Nodes: Pick any color you want using a color picker.
- ๐งช Mixer Nodes: Connect multiple colors and watch them blend into something new!
- ๐ผ๏ธ Palette Nodes: Keep track of your favorite color combinations.
- ๐พ Auto-Save: Everything stays right where you left it, even if you refresh the page.
- ๐ฑ๏ธ Smooth Interface: Drag nodes around and connect them with ease.
Tech Stack ๐ ๏ธ
- Svelte 5 (using the new runes!)
- SvelteKit for the framework
- Tailwind CSS 4 for the pretty styles
- @xyflow/svelte for the awesome node canvas
- TypeScript to keep things organized
Project Structure ๐
node-color-mixer/
โโโ src/
โ โโโ lib/
โ โ โโโ components/ # Our custom nodes (Color, Mixer, etc.)
โ โ โโโ types.ts # Data structures for the nodes
โ โ โโโ utils.ts # Color mixing math logic
โ โโโ routes/
โ โโโ +page.svelte # The main app logic and canvas
โโโ static/ # Images and icons
โโโ package.json # Project dependencies
Usage ๐ฎ
It's super easy to use!
- Add Nodes: Use the sidebar to add a Color, Mixer, or Palette node.
- Choose Colors: Pick a color in a Color Node.
- Connect: Drag from the little circle (handle) on a node to another one.
- Experiment: Try connecting multiple colors to a Mixer, or chain Mixers together for complex results!
- Clean up: Click the little "ร" on any node if you want to remove it.
How to Install / How to Use ๐ฆ
Want to run this on your own computer? Just follow these steps:
- Clone the project to your machine.
- Open your terminal and run
npm install to get the dependencies.
- Start the dev server with
npm run dev.
- Click the link that appears in your terminal (usually
http://localhost:5173) and start mixing!
Hope you enjoy playing with colors! ๐โจ