Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bsdf/libxpm.js

render xpm images to teh web
https://github.com/bsdf/libxpm.js

Last synced: 3 days ago
JSON representation

render xpm images to teh web

Awesome Lists containing this project

README

        

render xpm images to the web

USEAGE:

var url = "./xpm/xemacs.xpm";
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);

xhr.onreadystatechange = function(e) {
if (xhr.readyState == 4) {
var render_options = {
scale: 10,
bg_checkered: true // make the transparent bg checkered
};

document.body.appendChild(libxpm.xpm_to_img(xhr.responseText, render_options));
}
};

xhr.send();

TODO:
* rendering bugsz