InioX / matugen

A material you color generation tool
GNU General Public License v2.0
322 stars 16 forks source link

Additional Color Schemes #5

Closed skye-repos closed 1 year ago

skye-repos commented 1 year ago

Hi!

As requested, I'm making a new issue/feature request for adding other non monotone color schemes in different schema such as

1) Triadic 2) Tetradic 3) Adjacent 4) Complimentary

my preference would be Triadic or Adjacent since they already fit into the three-color format used by the monet engine.

Best, KSH

InioX commented 1 year ago

Hey! It's somewhat done, I just don't know the exact values to shift the hue. Maybe you could help adjust those, the commit should be on the testing branch, and the file with hues is here.

https://github.com/InioX/Matugen/assets/81521595/b44547f5-40c1-41a2-a25d-8216c85df00f

skye-repos commented 1 year ago

Hi!

Sorry, for the delay, i'll get on it once i have some free time and get back to you. Not sure how to do a PR and stuff like that.

skye-repos commented 1 year ago

Hi!

I think this algorithm works! I just have a couple of sugesstions regarding the adjacent scheme

1) can you add an 'angle' param? right now, its from_hue_and_chrome(hue +- 30, chroma / 3). If we can tune it to (hue +- angle, chroma / 3) ?

2) also, why does a2 have chroma/ 3 but a3 have chroma / 2 ? Did i misunderstand something?

I don't have access to a computer with git atm, so sorry I couldn't make the changes directly.

InioX commented 1 year ago

Hello, @Harith163!

  1. can you add an 'angle' param? right now, its from_hue_and_chrome(hue +- 30, chroma / 3). If we can tune it to (hue +- angle, chroma / 3) ?

Sure!

  1. also, why does a2 have chroma/ 3 but a3 have chroma / 2 ? Did i misunderstand something?

I have no idea to be honest. I took a look at both the c++ and typescript core palette files, but I couldn't find a reason why it is that way. Their site also doesn't have a lot of information about the core palette generation.