Interactive tool for generating cosine-based color palettes. Perfect for shaders and creative coding.
Creates smooth color gradients using this formula:
vec3 pal( in float t, in vec3 a, in vec3 b, in vec3 c, in vec3 d )
{
return a + b*cos( 6.28318*(c*t+d) );
}Install Node.js
If Node.js is not already installed download and install it from the official Node.js website: https://nodejs.org/en/download/
Install project dependencies
navigate to the project folder in your terminal. this project doesnt include external frameworks, npm is needed for certain dev dependencies like vite.
git clone https://github.com/MilesTails01/pal_generator.git
cd pal_generator
npm install
npm run dev
Open `http://localhost:5173`🐛 :bug: to indicate fixing a bug
🔥 :fire: to indicate removing code or files
🔧 :fix: mostly small little mistakes
🧹 :broom: cleanup, or layouting the code
✨ :sparkles: to indicate adding new features
💄 :lipstick: to indicate improving the UI/UX
🐎 :racehorse: to indicate improving performance
🔒 :lock: to indicate dealing with security
📝 :memo: to indicate writing documentation
🚧 :construction: to indicate work in progress
| Dark Mode | Light Mode |
|---|---|
![]() |
![]() |
⭐ Star this repo if you find it useful!
🤝 Contributions welcome - feel free to submit PRs

