First, you set the fillStyle property.
首先,您设置fillstyle属性。
Next, you redefine the fillStyle because you want to print some text as part of the report.
接下来,您重新定义 fillStyle,因为您想打印一些文本,作为报告的一部分。
The fill() method closes any subpaths and then fills each subpath in turn using fillStyle (which can be a color, or, as discussed later, a gradient object) to determine how to draw the fill.
fill()方法使所有子路径封闭起来,然后逐个填充每个子路径,期间使用fillStyle (一种颜色,或一个渐变对象)来决定如何绘制填充。
The fill() method closes any subpaths and then fills each subpath in turn using fillStyle (which can be a color, or, as discussed later, a gradient object) to determine how to draw the fill.
fill()方法使所有子路径封闭起来,然后逐个填充每个子路径,期间使用fillStyle (一种颜色,或一个渐变对象)来决定如何绘制填充。
应用推荐