Canvas API是一个低级画图api,它支持创建直线、曲线、多边形和圆圈,并用彩色、渐变色等填充它们。
The Canvas API is a low level API for drawing. It lets you create lines, curves, polygons, and circles and fill them in with colors, gradients, and so on.
去年,久负盛名长达两英里的直线加速器(夸克在此被发现)被转化成一种新型、强大、将创建出超亮X光脉冲的激光。
Last year, the venerable two-mile-long linear accelerator, where charmed quarks were discovered, was converted into a new kind of powerful laser that will create super-brilliant X-ray pulses.
需要注意的是,你可以在刚才创建的白色描边上绘制直线,因为稍后我们也会在直线选区上填充白色。
Note that you can go over the white stroke we created because we are going to fill this selection with white as well later on.
应用推荐