在线手册

  • canvas linecap

    HTML canvas lineCap Property HTML Canvas Reference Example Draw a line with rounded end caps: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var canvOK=1; try {c.getContext("2d");} ...

  • canvas linewidth

    HTML canvas lineWidth Property HTML Canvas Reference Example Draw a rectangle with a line width of 10 pixels: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var canvOK=1; try {c.getContext ...

  • canvas miterlimit

    HTML canvas miterLimit Property HTML Canvas Reference Example Draw lines with the maximum miter length of 5: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ...

  • canvas moveto

    ... point in the canvas, without creating a line. Tip: Use the stroke() method to actually draw the path on the canvas. JavaScript syntax: context.moveTo(x,y); Parameter Values Parameter Description Play ...

  • canvas quadraticcurveto

    HTML canvas quadraticCurveTo() Method HTML Canvas Reference Example Draw a quadratic Bézier curve: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var canvOK=1; try {c.getContext("2d ...

  • canvas shadowblur

    HTML canvas shadowBlur Property HTML Canvas Reference Example Draw a red rectangle with a black shadow, with blur level of 20: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var canvOK=1; ...

  • canvas shadowcolor

    HTML canvas shadowColor Property HTML Canvas Reference Example Draw a red rectangle with a black shadow: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var canvOK=1; try {c.getContext("2d ...

  • canvas shadowoffsetx

    HTML canvas shadowOffsetX Property HTML Canvas Reference Example Draw a rectangle with a shadow placed 20 pixels to the right (from the rectangle's left position): YourbrowserdoesnotsupporttheHTML5canvastag. var c=document. ...

  • canvas shadowoffsety

    HTML canvas shadowOffsetY Property HTML Canvas Reference Example Draw a rectangle with a shadow placed 20 pixels below the rectangle's top position: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas ...

  • canvas strokerect

    HTML canvas strokeRect() Method HTML Canvas Reference Example Draw a 150*100 pixels rectangle: YourbrowserdoesnotsupporttheHTML5canvastag. var c=document.getElementById("myCanvas"); var canvOK=1; try {c.getContext("2d");} ...

推广服务(新)
最新文章