update readme

This commit is contained in:
yushijinhun 2017-08-29 19:47:46 +08:00
parent 30cf976800
commit cde6e5029f
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 7 additions and 8 deletions

View File

@ -3,8 +3,6 @@ This is a Three.js powered Minecraft skin renderer packaged as a jQuery plugin.
The code was originally created by [Kent Rasmussen](https://github.com/earthiverse). You can find out more about his project [here](https://github.com/earthiverse/3D-Minecraft-Skin-Viewer). The code was originally created by [Kent Rasmussen](https://github.com/earthiverse). You can find out more about his project [here](https://github.com/earthiverse/3D-Minecraft-Skin-Viewer).
[Github pages example](http://hacksore.github.io/skinpreview3d.js)
# Features # Features
* 1.8 Skins * 1.8 Skins
* Capes * Capes
@ -17,7 +15,8 @@ The code was originally created by [Kent Rasmussen](https://github.com/earthiver
HTML HTML
```html ```html
<div id="canvas_container"> <div id="canvas_container">
<canvas id="canvas" width="64" height="64"></canvas> <canvas id="skinCanvas"></canvas>
<canvas id="capeCanvas"></canvas>
</div> </div>
``` ```
@ -25,13 +24,13 @@ JS
```js ```js
$(function() { $(function() {
$("#canvas_container").skinPreview3D({ $("#canvas_container").skinPreview3D({
imageUrl: "/img/ref.png", skinUrl: "img/Dinnerbone.png",
canvasID: "canvas" capeUrl: "img/cape.png",
skinCanvas: $('#skinCanvas'),
capeCanvas: $('#capeCanvas')
}); });
}); });
``` ```
# Todo # TODOs
* Create a demo hosted on github pages.
* Alex support (Slim arms). * Alex support (Slim arms).
* Mouse wheel camera zoom.