Skip to content

shawshark/serverless-mc-skin-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requires no server side code to run. Uses YQL (Yahoo Query) to download the skin and create the 3D model all in the browser via canvas.

Demo

http://jamesmortemore.com/mcskinviewer/

Usage

<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.minecraftskin.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function() {
        $(".mc-skin").minecraftSkin({scale: 6, hat: true);
    });
</script>
<style>
.scratch {
    display:none;
}
</style>
<span class="mc-skin" data-minecraft-username="confuserr"></span>

Change scale to change the size. Set hat to false if you don't want the hat to display.

Note

  • As this uses YQL please note their usage policy which can be found [here] 1.
  • For IE support, include excanvas.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published