第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

做了一個(gè)五角星 組合 旋轉(zhuǎn)的動(dòng)畫效果 :)

<!DOCTYPE?html>
<html>
<head?lang="en">
????<meta?charset="UTF-8">
????<script>;(function(){var?w=parseInt(window.screen.width),s=w/500,u=navigator.userAgent.toLowerCase(),m='<meta?name="viewport"?content="width=640,';if(/android?(\d+\.\d+)/.test(u)){if(parseFloat(RegExp.$1)>2.3)m+='minimum-scale='+s+',maximum-scale='+s+',';}else{m+='user-scalable=no,';}m+='target-densitydpi=device-dpi">';document.write(m);}());</script>
????<title>五角星</title>
????<style>
?*{margin:0?auto;overflow:hidden;color:#fff;font-size:20px;}
????????canvas{
????????????position:absolute;top:40%;left:50%;margin:-200px?0?0?-200px;
?}

????</style>
</head>
<body?style="background:#000;color:#fff;">
<canvas?id="myCanvas"?style="">你使用的瀏覽器不支持顯示,請(qǐng)更換<a?>現(xiàn)代瀏覽器</a></canvas>
<script>
?var?now_r,now_rot;
?(function(){
????var?canvas?=?document.getElementById('myCanvas'),
?con?=?canvas.getContext('2d'),
?W?=?400,
?H?=?400,
?s?=?setTimeout;

?canvas.width?=?W;
?canvas.height?=?H;
?con.fillStyle?=?'#000';
?con.fillRect(0,0,W,H);


?function?f(r,rot,w){
????????con.fillStyle?=?'#000';
?con.fillRect(0,0,W,H);

?con.beginPath();
?con.strokeStyle?=?'#fff';
?con.lineWidth?=?1;
?con.arc(W/2,H/2,199,Math.PI*1.5,Math.PI*(1.5?+?2));
?con.stroke();

?con.beginPath();
?con.strokeStyle?=?'#fff';
?con.lineWidth?=?1;
?con.arc(W/2,H/2,199,Math.PI*1.5,Math.PI*(1.5?+?2));
?con.stroke();

?w.forEach(function(p,key){
????????????if(p===1){
????????????????drawWJX(con,180,0+r,W/2,H/2,1,'#fff',18*key+rot);
?}
????????});
?now_r?=?r;
?now_rot?=?rot;
?console.log(now_r,now_rot)
????}


????r0(function(){
????????r1(function(){
????????????r2(function(){
????????????????r3(function(){
????????????????????r4(function(){
????????????????????????r5();
?});
?});
?});
?});
?});


?function?r0(callback){

????????var?now?=?0;
?(function(){
????????????now?+=?0.02;
?//底色
?con.fillStyle?=?"#000";
?con.fillRect(0,?0,?W,?H);
?//進(jìn)度
?con.beginPath();
?con.strokeStyle?=?'#fff';
?con.lineWidth?=?1;
?con.arc(W/2,H/2,199,Math.PI*1.5,Math.PI*(1.5?+?now));
?con.stroke();
?con.beginPath();
?con.strokeStyle?=?'#fff';
?con.lineWidth?=?1;
?con.arc(W/2,H/2,199,Math.PI*1.5,Math.PI*(1.5?+?now));
?con.stroke();
?if(now<2){
????????????????s(arguments.callee,20)
????????????}else{
????????????????s(function(){
????????????????????f(90,0,[1,0,0,0]);
?s(function(){
????????????????????????f(90,0,[1,1,0,0]);
?s(function(){
????????????????????????????f(90,0,[1,1,1,0]);
?s(function(){
????????????????????????????????f(90,0,[1,1,1,1]);
?s(function(){
????????????????????????????????????if(callback){
????????????????????????????????????????callback();
?}

????????????????????????????????},1000);
?},1000);
?},1000);
?},1000);
?},1000);
?}
????????}());

?}


????function?r1(callback){
????????var?rot?=?0;
?(function(){
????????????f(90,rot,[1,1,1,1]);
?rot?+=?0.2;
?if(rot<=20){
????????????????s(arguments.callee,20);
?}else{
????????????????if(callback){
????????????????????s(function(){callback()},20)
????????????????}
????????????}
????????}())
????}

????function?r2(callback){
????????var?r?=?now_r+1,
?rot?=?now_rot+0.2;
?(function(){
????????????f(r,rot,[1,1,1,1]);
?rot?+=?0.2;
?r?+=?1;
?if(r<=180){
????????????????s(arguments.callee,20);
?}else{
????????????????var?count?=?0;
?(function(){
????????????????????rot?+=?0.2;
?f(r,rot,[1,1,1,1]);
?count++;
?if(count<50){
????????????????????????s(arguments.callee,20);
?}else{
????????????????????????if(callback){
????????????????????????????s(function(){callback()},20)
????????????????????????}
????????????????????}
????????????????}());

?}
????????}());
?}

????function?r3(callback){
????????var?r?=?now_r-1,
?rot?=?now_rot+0.2;
?(function(){
????????????f(r,rot,[1,1,1,1]);
?rot?+=?0.2;
?r?-=?1;
?if(r>0){
????????????????s(arguments.callee,20);
?}else{
????????????????var?count?=?0;
?(function(){
????????????????????rot?+=?0.2;
?f(r,rot,[1,1,1,1]);
?count++;
?if(rot<108){
????????????????????????s(arguments.callee,20);
?}else{
????????????????????????if(callback){
????????????????????????????s(function(){callback()},20)
????????????????????????}
????????????????????}
????????????????}());

?}
????????}());
?}


????function?r4(callback){
????????var?move?=?1,
?r?=?now_r+?move,
?rot?=?now_rot+0.2;
?(function(){
????????????f(r,rot,[1,1,1,1]);
?rot?+=?0.2;
?r?+=?move;
?if(r>180){
????????????????move?=?-1;
?r?=?180+move;
?}
????????????if(!(move?===?-1?&&?r<=90)){
????????????????s(arguments.callee,20);
?}else{
????????????????(function(){
????????????????????rot?+=?0.2;
?f(r,rot,[1,1,1,1]);
?if(Math.round(rot*10)<1800){
????????????????????????s(arguments.callee,20);
?}else{
????????????????????????if(callback){
????????????????????????????s(function(){callback()},20)
????????????????????????}
????????????????????}
????????????????}());

?}
????????}());
?}

????function?r5(){
????????var?r?=?now_r,
?rot?=?0.2,
?count?=?0,
?w?=?[1,1,1,1];
?(function(){
????????????f(r,rot,w);
?rot?+=?0.2;
?count++;

?if(count>50?&&?count<=100){
????????????????w?=?[1,1,1,0]
????????????}else?if(count>100?&&?count<=150){
????????????????w?=?[1,1,0,0]
????????????}else?if(count>150?&&?count<=250){
????????????????w?=?[1,0,0,0]
????????????}else?if(count>250?&&?count<=300){
????????????????w?=?[1,1,0,0]
????????????}else?if(count>300?&&?count<=350){
????????????????w?=?[1,1,1,0]
????????????}else?if(count>350?&&?count<=400){
????????????????w?=?[1,1,1,1]
????????????}else?if(count?===?450){
????????????????s(function(){
????????????????????r1(function(){
????????????????????????r2(function(){
????????????????????????????r3(function(){
????????????????????????????????r4(function(){
????????????????????????????????????r5();
?});
?});
?});
?});
?},20);
?return;
?}

????????????s(arguments.callee,20);
?}());
?}

????function?drawWJX(con,R,r,x,y,lineWidth,strokeStyle,rotate){
????????con.beginPath();
?for(var?i=?0;i<5;i++){
????????????con.lineTo(Math.cos((18-rotate+i*72)/180*Math.PI)*R+x,-Math.sin((18-rotate+i*72)/180*Math.PI)*R+y);
?con.lineTo(Math.cos((54-rotate+i*72)/180*Math.PI)*r+x,-Math.sin((54-rotate+i*72)/180*Math.PI)*r+y);
?}
????????con.strokeStyle?=?strokeStyle;
?con.lineWidth?=?lineWidth;
?con.closePath();
?con.stroke();
?}


????}());


</script>

</body>
</html>

做了一個(gè)五角星 組合 旋轉(zhuǎn)的動(dòng)畫效果

正在回答

5 回答

頂禮膜拜

0 回復(fù) 有任何疑惑可以回復(fù)我~

在哪都能看到這么厲害的人,彩筆的我們?cè)趺椿頭(* ̄(oo) ̄)^

0 回復(fù) 有任何疑惑可以回復(fù)我~

厲害~

0 回復(fù) 有任何疑惑可以回復(fù)我~

流弊??!參考了學(xué)習(xí)了

0 回復(fù) 有任何疑惑可以回復(fù)我~

樓主,在下拜服!

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

做了一個(gè)五角星 組合 旋轉(zhuǎn)的動(dòng)畫效果 :)

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)