Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rickycodes/glitch-bitmapdata

bitmapData revisit.link service
https://github.com/rickycodes/glitch-bitmapdata

Last synced: 5 days ago
JSON representation

bitmapData revisit.link service

Awesome Lists containing this project

README

        

bitmapData revisit.link service
=================================

What is this?
-------------

This is an example of an API endpoint for http://hub.revisit.link written in Node.js

What it do?
-----------

Borks up images! Currently uses a shoddy port of [@pnitsch](https://github.com/pnitsch/)'s https://github.com/pnitsch/BitmapData.js/ that works with the `node-canvas` module to build images with Cairo (http://cairographics.org/)

Methods exposed (not all tested)

`BitmapData`
`BlendMode`
`BitmapDataChannel`
`hexToRGB`
`RGBToHex`
`histogramVector`
`PRNG`
`Rectangle`
`radianToDegree`
`degreeToRadian`
`Matrix`
`Point`
`ColorMatrixFilter`

The API returns a gif generated by randomizing the use of two methods: One which utilizes `ColorMatrixFilter` and the another that uses `.paletteMap`

Example
-------

input →
![Audrey](http://i.imgur.com/LGBsjzU.jpg)
output →
![Audrew colorize](http://i.imgur.com/XH6ximA.gif)
or
![Audrey LSD](http://i.imgur.com/aG7CeTv.gif)

Thanks
------

To all the other people who've submitted services to http://hub.revisit.link espeically: [@brycebaril](https://github.com/brycebaril/) [@brenna](https://github.com/brenna/) [@kid-icarus](https://github.com/kid-icarus/) and [@kirbysayshi](https://github.com/kirbysayshi/) for inspiration!