jPaq Docs - Color.prototype.combine()

Quick Stats

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


Merges this color the the specified color.


  1. secondColor => Color
    The color that will be merged or combined with this one.
  2. [strength] => Number
    Optional. A number inclusively ranging from 0 to 100 which represents how much of "secondColor" will appear in the new color. If this is omitted, this will default to 50.


Returns a new color object which represents the merging of this color with "secondColor".