hex - Javascript - "One shade darker" -


Is it possible to use javascript to determine if a color is darker than the current background? Probably some hexadecimal addition / subtraction?

I have a menu that can be any color and if it is not very difficult, then submenu can be a shadow dark. How does one get this effect?

As Abby comment, 'shadow' is not very well defined. Despite this, it might be easier to think in any other color presentation, like 'V'.

You can either convert, decrease V and change back to RGB hex


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -