Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
      <head>
          <script type="text/javascript" src="drawing.js"></script>
     </head>
      <body>
      
      
            <p >
                <label><strong>Drawing tool:</strong> <select id="dtool">
                      <option value="pencil">Pencil</option>
                      <option value="spray">Spray</option>
                </select></label>
                <label><strong>Colour:</strong> <select onChange="changeColor(this.value)">
                      <option onclick="#659b41;clicksound.playclip();">Green</option>
                      <option onclick="#cb3594;clicksound.playclip();">Purple</option>
                      <option onclick="#ffcf33;clicksound.playclip();">Yellow</option>
                      <option onclick="#000000;clicksound.playclip();"selected>Black</option>
                </select></label>
            </p>
            
            <div >
            <canvas id="imageView"  width="500" height="300" style=" border: 1px solid #000;" />
            </div>
      </body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers