Qix-/color

Adding Tetradic and Triadic color palette generator #212

schie posted onGitHub

Hello!

I find myself constantly creating Tetradic and Triadic color palette w/ this library in numerous projects I work on.

Would you find any benefit in adding these to this lib?

For example:

const inputColor = Color('#FFFF00');

const triadics = inputColor.triadicPalette(); // [Color('#FFFF00'), Color('#00FFFF'), Color('#FF00FF')]
const tetradics = inputColor.tetradicPalette(); // [Color('#FFFF00'), Color('#00FF80'), Color('#0000FF'), Color('#FF0080')]

Triadic

Screen Shot 2021-08-08 at 11 27 48 PM

Tetradic

Screen Shot 2021-08-08 at 11 28 39 PM

If so, I'd be happy to make a PR.


I'm on the fence about it, purely because it's not a commonly used feature (I understand you use it often but I haven't seen many examples of it elsewhere) and the library is already kind of stagnant because of the existing complicated API.

If you'd like to take the time to make a PR, that'd be great - just know that I might decide against it if it adds too much bulk.

posted by Qix- over 3 years ago

Hi, I've thought more about it and I don't think this fits within the scope of the package. Thanks for filing an issue though :)

posted by Qix- about 3 years ago

Fund this Issue

$0.00
Funded

Pull requests