jPaq Docs - Color.prototype.getLighter()

Quick Stats

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

Summary

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

Parameters

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

Returns

Color
Returns a lighter 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…