Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rickycodes/glitch-bitmapdata
- Owner: rickycodes
- Created: 2014-09-08T01:29:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T08:05:21.000Z (over 6 years ago)
- Last Synced: 2024-04-14T16:12:04.367Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 432 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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!