![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
canvas
素素_钗钗
如今世路已惯,此心到处悠然
展开
-
canvas实现类流星雨滴效果
如图所示的效果,代码如下<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <met...原创 2019-11-05 15:33:20 · 399 阅读 · 0 评论 -
js 水印
利用canvas来画网页上的水印,代码如下:function watermarker(w,h,str){ var canvas = document.createElement('canvas'); var body = document.body; body.appendChild(canvas); canvas.width=w; //画布的宽 ca...原创 2018-12-04 15:53:16 · 533 阅读 · 0 评论