Socket
Socket
Sign inDemoInstall

fe-color

Package Overview
Dependencies
6
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fe-color

Change a color based on a transformation matrix


Version published
Maintainers
1
Install size
123 kB
Created

Readme

Source

🎨 Filter effects color

Change a color based on a filter effect matrix

Install

$ npm install fe-color

Usage

const feColor = require( 'fe-color' );

feColor( 
  'red', 
  [ 
    0.567, 0.433, 0, 0, 0,
    0.558, 0.442, 0, 0, 0,
    0, 0.242, 0.758, 0, 0,
    0, 0, 0, 1, 0,
  ]
); // This returns #918E00

Parameters

The function feColor function takes two parameters:

feColor( $color, $matrix );
  1. color - The color to be manipulated by the filter
  2. matrix - The filter to transform the color

Research

Fundamentals from feColorMatrix and Finessing feColorMatrix.

Release History

  • v1.0.7 - Update dependencies and GitHub actions to yml
  • v1.0.6 - Update dependencies
  • v1.0.5 - xo is a dev dependency
  • v1.0.4 - Replace eslint with xo
  • v1.0.3 - Use files instead of .npmignore
  • v1.0.2 - Remove prepublishOnly script
  • v1.0.1 - Replace travis with GitHub actions
  • v1.0.0 - First release

Keywords

FAQs

Last updated on 01 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc