prjctimg / huetiful

JavaScript utility library for simple 🧮, fast ⏱️ and accessible ♿ color manipulation.
http://huetiful-js.com/
Apache License 2.0
28 stars 5 forks source link

fix: refactor palette generators #214

Closed prjctimg closed 1 month ago

prjctimg commented 1 month ago

The generators module is in disrepair and is requiring a full refactor.

The goals for this refactor are:

prjctimg commented 1 month ago

The best way to allow developers to extend the palette generator functions is to use the built-in mapper function in Culori allowing us to define the custom rules per color token .

Probably we can pass the mapping rules per manipulation.

prjctimg commented 1 month ago

https://culorijs.org/api/#mapper

Above link references how the function works.

I need to setup a few things in prder to make sure that the intended channels are manipulated and that the output returned is displayable.

WIP

prjctimg commented 1 month ago

Just fixed the hueshift function... 2 more builtin utilities left