使用 clearRect()方法可以擦除画布中某个区域。该方法用于把绘图上下文中的某个区域变透明。 通过先绘制形状再擦除指定区域,可以创建出有趣的效果,比如从已有矩形中开个孔。来看下面的例子: 26 以上代码在两个矩形重叠的区域上擦除了一个小矩形,图 18-3 ...
路径对象,支持通过对象的接口进行路径的描述,并通过Canvas的stroke接口进行绘制。具体请参考Path2D对象。 /* xxx.css */ .container ...
This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version. scaleX number Scale ratio of the x-axis. skewX number Skew angle of ...
当前正在显示可能无法访问的结果。
隐藏无法访问的结果