59naga / jaggy

Keep the sharpness for Pixel-Art.
12 stars 2 forks source link

Can not be identified for unique svg #8

Closed 59naga closed 9 years ago

59naga commented 9 years ago
<img src="whatever" jaggy id="get-color-palette">
<img src="whatever" jaggy>

For a particular image, if you want to later processing, not the definition.

59naga commented 9 years ago

Example

<head>
<script src="jaggy.browser.js"></script>
<script>
  angular.module('myApp',['jaggy'])
  .run(function($rootScope){
    $rootScope.callback= function(){
      alert('done!');
    };
  });
</script>
</head>
<body ng="myApp">
  <img src="whatever" jaggy jagged="callback">
</body>