layer-colors-scss

0.1.1 • Public • Published

layer-colors-scss

layer transparent colors

Installation

$ npm install --save layer-colors-scss

Usage

layer-colors($above, $below)

Outputs a color from two colors as if they were layered in Photoshop or a browser.

The resulting color is not an average.

layer-colors(rgba(dodgerblue, 0.25), rgba(orange, 0.75))
// => rgba(143, 155, 128, 0.8125) 

For comparison here is the result of mix()

mix(rgba(dodgerblue, 0.25), rgba(orange, 0.75))
// => rgba(199, 160, 64, 0.5) 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i layer-colors-scss

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • dustin-archive