https://github.com/rickycodes/glitch-bitmapdata
bitmapData revisit.link service
https://github.com/rickycodes/glitch-bitmapdata
Last synced: 9 months 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T08:05:21.000Z (about 8 years ago)
- Last Synced: 2025-06-07T17:42:36.866Z (11 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 →

output →

or

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!