HTML canvas rect() 方法HTML5 Canvas 参考手册定义和用法rect() 方法创建矩形。提示:请使用 stroke() 或 fill() 方法在画布上实际地绘制矩形。实例例子 1绘制 150*100 像素
HTML canvas miterLimit 属性HTML5 Canvas 参考手册定义和用法miterLimit 属性设置或返回最大斜接长度。斜接长度指的是在两条线交汇处内角和外角之间的距离。提示:只有当 li
HTML canvas lineWidth 属性HTML5 Canvas 参考手册定义和用法lineWidth 属性设置或返回当前线条的宽度,以像素计。实例用宽度为 10 像素的线条来绘制矩形: Your browser does
HTML canvas lineJoin 属性HTML5 Canvas 参考手册定义和用法lineJoin 属性设置或返回所创建边角的类型,当两条线交汇时。注释:值 "miter" 受 miterLimit 属性的影响。实例当两
HTML canvas lineCap 属性HTML5 Canvas 参考手册定义和用法lineCap 属性设置或返回线条末端线帽的样式。注释:"round" 和 "square" 会使线条略微变长。实例绘制圆形的结束线
HTML canvas addColorStop() 方法HTML5 Canvas 参考手册定义和用法addColorStop() 方法规定 gradient 对象中的颜色和位置。addColorStop() 方法与 createLinearGradient()
HTML canvas createRadialGradient() 方法HTML5 Canvas 参考手册定义和用法createLinearGradient() 方法创建放射状/圆形渐变对象。渐变可用于填充矩形、圆形、线条、文本等
HTML canvas createPattern() 方法HTML5 Canvas 参考手册定义和用法createPattern() 方法在指定的方向内重复指定的元素。元素可以是图片、视频,或者其他 <canvas> 元素。被
HTML canvas createLinearGradient() 方法HTML5 Canvas 参考手册定义和用法createLinearGradient() 方法创建线性的渐变对象。渐变可用于填充矩形、圆形、线条、文本等等。
HTML canvas shadowOffsetY 属性HTML5 Canvas 参考手册定义和用法shadowOffsetY 属性设置或返回形状与阴影的垂直距离。 shadowOffsetY=0 指示阴影位于形状的正下方 shadowO
HTML canvas shadowOffsetX 属性HTML5 Canvas 参考手册定义和用法shadowOffsetX 属性设置或返回形状与阴影的水平距离。 shadowOffsetX=0 指示阴影位于形状的正下方 shadowO
HTML canvas shadowBlur 属性HTML5 Canvas 参考手册定义和用法shadowBlur 属性设置或返回阴影的模糊级数。实例绘制一个带有黑色阴影的蓝色矩形,模糊级数是 20: Your browser
HTML canvas shadowColor 属性HTML5 Canvas 参考手册定义和用法shadowColor 属性设置或返回用于阴影的颜色。注释:请将 shadowColor 属性与 shadowBlur 属性一起使用,来创建阴
HTML canvas strokeStyle 属性HTML5 Canvas 参考手册定义和用法strokeStyle 属性设置或返回用于笔触的颜色、渐变或模式。实例例子 1绘制一个矩形。请用蓝色的笔触颜色: Your
HTML canvas fillStyle 属性HTML5 Canvas 参考手册定义和用法fillStyle 属性设置或返回用于填充绘画的颜色、渐变或模式。实例实例 1定义用蓝色填充的矩形: Your browser doe