Home

Awesome

angular-legofy

Angular-legofy is a directive based on Legofy

screenshot

factor="0.025" blend-mode="'overlay'"
factor="0.02" blend-mode="'darken'"
factor="0.05" blend-mode="'soft-light'"
factor="0.01" blend-mode="'hard-light'"

Required

only AngularJS is needed.

Install

npm install angular-legofy --save

then in you angular application, register the module

import 'angular-legofy'


angular.module('MyApp', [ 'legofy' ]);

then use the directive

<img src="img/lena.jpg" legofy>

You have two options : factor (size of the bricks) and blend-mode

<img src="img/lena.jpg" legofy factor="0.025" blend-mode="'screen'">

By default : factor = 0.05, blendMode = 'overlay' however 'screen', 'darken', 'color-burn', 'hard-light', 'soft-light'

Contribute

Feel free to fork and contribute, you just have to install the dependencies and build the project via npm

npm run build

Authors

Jean-Charles FAUVIN

Thanks

WildHoney for Legofy

License

The MIT License (MIT)

Copyright (c) 2015 Jean-Charles FAUVIN

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.