在线手册

  • ref canvas

    ... on the canvas. This reference will cover the properties and methods of the getContext("2d") object, which can be used to draw text, lines, boxes, circles, and more - on the canvas. Browser Support The numbers in the table specify the first ...

  • tag canvas

    ... 0, 80, 80); </script> Try it yourself » Definition and Usage The <canvas> tag is used to draw graphics, on the fly, via scripting (usually JavaScript). The <canvas> tag is only a container for graphics, you must ...

  • canvas arcto

    ... ctx.stroke();                // Draw it Try it yourself » Browser Support Internet Explorer 9, Firefox, Chrome, and Safari support the arcTo ...

  • canvas drawimage

    ... Object Image to use: Example Draw the image onto the canvas: YourbrowserdoesnotsupporttheHTML5canvastag ... canvas, or video onto the canvas. The drawImage() method can also draw parts of an image, and/or increase/reduce the image size. ...

  • canvas globalalpha

    ... a red rectangle, then set transparency (globalAlpha) to 0.5, and then draw a blue and a green rectangle: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var canvOK=1; try {c.getContext("2d");} catch ...

  • canvas putimagedata

    ... canvas dirtyY Optional. The vertical (y) value, in pixels, where to place the image on the canvas dirtyWidth Optional. The width to use to draw the image on the canvas dirtyHeight Optional. The height to use to ...

  • canvas rect

    ... Usage The rect() method creates a rectangle. Tip: Use the stroke() or the fill() method to actually draw the rectangle on the canvas. JavaScript syntax: context.rect(x,y,width,height); Parameter Values Parameter ...

  • canvas stroke

    ... have defined with all those moveTo() and lineTo() methods. The default color is black. Tip: Use the strokeStyle property to draw with another color/gradient. JavaScript syntax: context.stroke(); Canvas Object

  • canvas strokestyle

    ... A pattern object used to create a pattern stroke   More Examples Example Draw a rectangle. Use a gradient stroke: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas2"); var ...

  • canvas translate

    ... a rectangle in position (10,10), set new (0,0) position to (70,70). Draw same rectangle again (notice that the rectangle now starts in position (80,80): YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas ...

推广服务(新)
最新文章