A pixel art painter geared specifically at NES pixel art. Includes export for .chr binary file as well as palette and namespace data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
332B

  1. const utils = {
  2. debounce:function(func, delay){
  3. var timeout = null;
  4. return function(){
  5. var context = this;
  6. var args = arguments;
  7. clearTimeout(timeout);
  8. timeout = setTimeout(function(){
  9. func.apply(context, args);
  10. }, delay);
  11. };
  12. }
  13. };
  14. Object.freeze(utils);
  15. export default utils;