JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://rawgit.com/RSGmaker/WalfasStuff/master/WalfasRender/drawwalfas.js"></script>

JavaScript

var walfas = new drawwalfas();
//imageFromDNA(DNAstring,scale,cropping,isbacksprite) 
//cropping is optional and if set to true will cause the image to lose its centering
document.body.appendChild(walfas.imageFromDNA("3.39:RSGmaker:100:0:192:324:232:24:0:0:0:1:0:321A00",1.0,false,false))
//imageFromObject(object id,scale,cropping)
document.body.appendChild(walfas.imageFromObject(3,1.0,false))

//backgrounds are not as simple as they have an asynchronus call within the function, meaning trying to call it synchronously will fail, to get around this we call it once so it will preload.

//imageFromBackground(background id,scale)
//background does not have cropping option
walfas.imageFromBackground(2,1.0);

//then we call it again with a delay via setTimeout, and this time we can actually use the returned data
	window.setTimeout(function(){
	document.body.appendChild(walfas.imageFromBackground(2,1.0))}, 50);