Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html lang="en">
  <head>
    <title>Extract and draw sprite</title>
    <style>
        canvas {
            border: 1px solid black;
        }
    </style>
  </head>
  <body>
    Sprite width: 275, height: 275, postures: 1, sprites per posture: 16<p>
    <label for="x">x: <input id="x" type="number" min=0><br/>
   <label for="y">y: <input id="y" type="number" min=0><br/>
      <label for="width">width: <input id="width" type="number" min=0><br/>
         <label for="height">height: <input id="height" type="number" min=0><p>
Select current sprite: <input type=range id="spriteSelect" value=0> <output id="spriteNumber">          
           <p/>
                   <canvas id="canvas" width="48" height="92" />
           </p>  
           <canvas id="spritesheet"></canvas>
  </body>
</html>
    
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
micbuffapro
0viewers