Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monochrome is only working in in darker range. #228

Open
TJ-shmt opened this issue Jul 2, 2021 · 0 comments
Open

Monochrome is only working in in darker range. #228

TJ-shmt opened this issue Jul 2, 2021 · 0 comments

Comments

@TJ-shmt
Copy link

TJ-shmt commented Jul 2, 2021

Ive been trying to write some code to get a monocrome palette for one color.

IMO, Monochromatic should go from white to black range. However the monochroatic filter in TinyColor only goes from the input color to black.
I am not sure if i made a mistake here, and did not understand the guide, or if it is really like i said.

var color1 = tinycolor("blue"); var mono =color1.monochromatic(3); document.getElementById("main").style.backgroundColor = mono[0].toHexString(); document.getElementById("dark").style.backgroundColor = mono[1].toHexString(); document.getElementById("light").style.backgroundColor = mono[2].toHexString();

1 was basically almost black while 2 was midrange between basecolor and black.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant