Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2023-01-17-skia.md #315

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/_posts/2023-01-17-skia.md
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ canvas.drawPath(rectsPath, rectsPaint)
![bukefenli](https:////img10.360buyimg.com/ling/s516x0_jfs/t1/120419/12/34036/210195/63c4b041Fed057bbf/d0b300713c924b66.png)


至此,我们便完成了整体背景图案的绘制。在这里,我们实现了一套使用 JSX 来编写图形组件的形式,通过控制不同的传参,绘制出不同的结果,这也和程序化设计的目标一致——通过输入不同的参数输出不同的设计结果。通过编写大量的图形组件,使得程序化设计输出了丰富多彩的背景图案,大大提高了羚珑模板的丰富度。


## 参考资料

[skia.org](https://skia.org)
Expand Down