Gulp Image Scramble
GulpJS module for image-scramble with seed
Scramble/Unscramble Images
Very useful for protect canvas spritesheets.
Example
Scramble (Server-Side)
Unscramble (Client-Side)
Usage Example
var imgScramble = ; gulp
Options
seed
- Seed to shuffle in same sequence
sliceSize
- size of each slice
Installation
npm install gulp-image-scramble
UnsrcambleImg (Client-Side)
Installation
bower install unscramble-img
Usage
// unscrambleImg(src,sliceSize,seed) var canvas = ;
Phaser Example
var bmp = ;var sprite = gameadd;