# HTML Canvas URL: https://chengjinfang.com/posts/2017/web-html4/ Author: 程锦方 Date: 2017-10-02 Tags: #note #html #web Summary: 通过示例学习 Canvas 绘制线条、矩形、渐变、文字和图像。 ------------------------------------------------------------------------ ## Canvas ### 绘制一个画布: ```html ``` ### 在画布中创建线条: ```java ``` ### 文本: ```java ``` ### 图像: ```html The Scream ``` 原图缺失:/images/loge.jpg。Canvas 绘图演示暂不可用,上方示例代码保留。 ### 渐变色卡: ```html ``` ------------------------------------------------------------------------ Site: https://chengjinfang.com/ · All Index: https://chengjinfang.com/all/ · RSS: https://chengjinfang.com/rss.xml