Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bsdf/libxpm.js
- Owner: bsdf
- Created: 2011-06-05T18:20:13.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-06-06T15:01:04.000Z (over 13 years ago)
- Last Synced: 2023-03-12T00:41:36.551Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 152 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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