You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: