jPaq Docs - Color.prototype.getDarker()

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  978


Gets a darker version of this color by mixing it with white.


  1. [strength] => Number
    Optional. A number inclusively ranging from 0 to 100 which represents how much black will appear in the new color. If this is omitted, this will default to 30.


Returns a darker version of this color as a new color object.

Related Examples

  1. Shading Colors
    Making colors darker and lighter across browsers isn't always easy, that is, unless you are using a JavaScript library like jPaq.  Below you…
  2. Foreground vs. Background
    I think one of the biggest complaints of users and web designers is the fact that many times people use background colors that are too…