javascript Programming Glossary: lighten
How to use CSS (and JavaScript?) to create a blurred, “frosted” background? http://stackoverflow.com/questions/17092299/how-to-use-css-and-javascript-to-create-a-blurred-frosted-background x y w h 0 0 w h stackBlurCanvasRGB ocanvas x y w h 28 lighten ocanvas ctx.fillStyle 'rgba 255 255 255 0.5 ' ctx.fillRect x..
Programmatically Lighten or Darken a hex color http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color Here is a function I was working on to programmatically lighten or darken a hex color by a specific amount. Just pass in a string.. the color col and an base10 integer amt for the amount to lighten or darken. To darken pass in a negative number i.e. 20 . The.. is probably the fastest way I've seen or can think of to lighten add white or darken add black an arbitrary RBG color by percentage...
Increase CSS brightness color on click with jquery/javascript? http://stackoverflow.com/questions/5833624/increase-css-brightness-color-on-click-with-jquery-javascript multiplier 255 1 if it would still be too dark make it lighten more if multiplier 1.5 multiplier 1.9 if it gets to white move..
$(document).ready equivalent without jQuery http://stackoverflow.com/questions/799981/document-ready-equivalent-without-jquery but doesn't use anything else from jQuery. I'd like to lighten it up by removing the jQuery dependency. How can I implement..
|