jQuery Based Image/Video To ASCII Art Converter - abc.js

jQuery Based Image/Video To ASCII Art Converter - abc.js
File Size: 1.35 MB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

abc.js is a jQuery based ASCII Art Generator/Converter which converts the normal images (and even html5 videos) into ASCII text art using HTML5 Canvas 2D API.

How to use it:

1. The jQuery abc.is plugin must be included after jQuery library.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="jquery.abc.js"></script>

2. Call the function to convert a matched image into ASCII text.

$('img').abc();

3. If you want to apply the plugin to an HTML5 video:

$('video').abc().get(0).play();

4. Default plugin settings.

$('img').abc({

  // letters used, dark to light
  letters : 'XMI/-.', 

  // invert the letters if light text is used on a dark background
  invert : false, 

  // FPS
  fps: 25
  
});

This awesome jQuery plugin is developed by m90. For more Advanced Usages, please check the demo page or visit the official website.