HTML5之svg
矢量圖,縮放不變形。1. 繪制基礎(chǔ) 1.1標(biāo)簽繪制
1.2 js繪制svg基礎(chǔ)
1.3 path繪制demo
1.4 文本繪制svg
2.動(dòng)畫基礎(chǔ) 2.1 直線動(dòng)畫svg
2.2 弧線動(dòng)畫svg動(dòng)畫
2.3 軌跡動(dòng)畫svg動(dòng)畫
2.4 文本動(dòng)畫svg動(dòng)畫
2.5 動(dòng)畫綜合練習(xí)svg
vector.js (function(){ function Vector(x,y){ this.x = x || 0; this.y = y || 0; } Vector.prototype = { constructor:Vector, square:function(){ return this.x * this.x + this.y * this.y; }, length:function(){ return Math.sqrt(this.square()); }, add:function(q){ return new Vector(this.x + q.x,this.y+q.y); }, minus:function(q){ return new Vector(this.x - q.x,this.y-q.y); }, multipy:function(scale){ return new Vector(this.x*scale,this.y*scale); }, normalize:function(length){ if(length === undefined){ length = 1; } return this.multipy(length / this.length()); } }; Vector.fromPoints = function(p1,p2){ return new Vector(p2.x - p1.x, p2.y - p1.y); }; window.Vector = Vector; })();
index.html3.圖案動(dòng)畫svg動(dòng)畫
圖案處理/title>
這篇是對(duì)慕、課、網(wǎng)svg教程的筆記,鏈接貼在下面,大家可以去看看:
走進(jìn)SVG:https://www.imooc.com/learn/143
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請(qǐng)注明本文地址:http://m.hztianpu.com/yun/109381.html
閱讀 2938·2023-04-26 02:23
閱讀 1768·2021-11-11 16:55
閱讀 3213·2021-10-19 11:47
閱讀 3450·2021-09-22 15:15
閱讀 2044·2019-08-30 15:55
閱讀 1106·2019-08-29 15:43
閱讀 1361·2019-08-29 13:16
閱讀 2265·2019-08-29 12:38