当前位置:编程学习 > html/css >>

HTML5 2d开发

canvas的2d开发主要方法有如下


arc: function arc() { [native code] }
arcTo: function arcTo() { [native code] }
beginPath: function beginPath() { [native code] }
bezierCurveTo: function bezierCurveTo() { [native code] }
clearRect: function clearRect() { [native code] }
clearShadow: function clearShadow() { [native code] }
clip: function clip() { [native code] }
closePath: function closePath() { [native code] }
constructor: function CanvasRenderingContext2D() { [native code] }
createImageData: function createImageData() { [native code] }
createLinearGradient: function createLinearGradient() { [native code] }
createPattern: function createPattern() { [native code] }
createRadialGradient: function createRadialGradient() { [native code] }
drawImage: function drawImage() { [native code] }
drawImageFromRect: function drawImageFromRect() { [native code] }
fill: function fill() { [native code] }
fillRect: function fillRect() { [native code] }
fillText: function fillText() { [native code] }
getImageData: function getImageData() { [native code] }
isPointInPath: function isPointInPath() { [native code] }
lineTo: function lineTo() { [native code] }
measureText: function measureText() { [native code] }
moveTo: function moveTo() { [native code] }
putImageData: function putImageData() { [native code] }
quadraticCurveTo: function quadraticCurveTo() { [native code] }
rect: function rect() { [native code] }
restore: function restore() { [native code] }
rotate: function rotate() { [native code] }
save: function save() { [native code] }
scale: function scale() { [native code] }
setAlpha: function setAlpha() { [native code] }
setCompositeOperation: function setCompositeOperation() { [native code] }
setFillColor: function setFillColor() { [native code] }
setLineCap: function setLineCap() { [native code] }
setLineJoin: function setLineJoin() { [native code] }
setLineWidth: function setLineWidth() { [native code] }
setMiterLimit: function setMiterLimit() { [native code] }
setShadow: function setShadow() { [native code] }
setStrokeColor: function setStrokeColor() { [native code] }
setTransform: function setTransform() { [native code] }
stroke: function stroke() { [native code] }
strokeRect: function strokeRect() { [native code] }
strokeText: function strokeText() { [native code] }
transform: function transform() { [native code] }
translate: function translate() { [native code] }



摘自 吃掉大象的蚂蚁的专栏
补充:web前端 , HTML 5 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,