Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. colorMatrix = [
  2.   1, 0, 0, 0,
  3.   0, 1, 0, 0,
  4.   0, 0, 1, 0,
  5.   0, 0, 0, 1
  6. ];
  7. filter = new PIXI.filters.ColorMatrixFilter();
  8. filter.matrix = colorMatrix;
  9. stage.filters = [filter];
  10.  
  11. filter.brightness(0.5, false);
  12. filter.contrast(0.5, true);
  13. filter.desaturate();
  14. filter.greyscale(0.4, false);
  15. filter.hue(180, false);
  16. filter.negative(true);
  17. filter.saturate(2, false);
  18. filter.sepia(false);
  19. filter.technicolor(true);
  20. filter.browni(true);
  21. filter.kodachrome(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement