concat-color-matrices
Version:
Functions for combining color matrices
34 lines (23 loc) • 1.6 kB
Markdown
# concat-color-matrices
[](https://badge.fury.io/js/concat-color-matrices)
[](https://circleci.com/gh/iyegoroff/concat-color-matrices)
[](https://codecov.io/gh/iyegoroff/concat-color-matrices)
[](https://david-dm.org/iyegoroff/concat-color-matrices)
[](https://david-dm.org/iyegoroff/concat-color-matrices?type=dev)
[](src/index.d.ts)
[](https://www.npmjs.com/package/concat-color-matrices)
Functions for combining color matrices
## Getting started
`$ npm install concat-color-matrices --save`
## Reference
### Functions
```typescript
concatColorMatrices(matrices: Matrix[]): Matrix
concatTwoColorMatrices(matB: Matrix, matA: Matrix): Matrix
```
### Matrix type
- A 4x5 matrix for color transformations represented by array -
consult [Android docs](https://developer.android.com/reference/android/graphics/ColorMatrix)
for more specific info about it's format
## Credits
- `concatTwoColorMatrices` function is based on Android SDK [sources](https://goo.gl/MMDopQ)