[懒人编程学院]javascript生成500个横条立方体

愿天下没有难画的简笔画,  愿天下知识都能秒会

❈<script>function go(){var allHtml="";var h=12;var w=10;var l=25; //行数var cell=300;//格子大小var w1=w;var h2=Math.tan(26.5*2*Math.PI/360)*w;for( var i=0;i<500;i++){var h1=Math.tan(26.5*2*Math.PI/360)*w1;var x1=10+i%l*cell;var y1=parseInt(i/l)*cell;var x2=x1+w1;var y2=y1-h1;var x3=x1+w+w1;var y3=y2+h2;var x4=x3;var y4=y3+h;var x5=x1+w;var y5=y4+h1;var x6=x1;var y6=y1+h;var x7=x5;var y7=y1+h2;var strh=h.toString();var strw=w.toString();var strx1=x1.toString();var stry1=y1.toString();var strx2=x2.toString();var stry2=y2.toString();var strx3=x3.toString();var stry3=y3.toString();var strx4=x4.toString();var stry4=y4.toString();var strx5=x5.toString();var stry5=y5.toString();var strx6=x6.toString();var stry6=y6.toString();var strx7=x7.toString();var stry7=y7.toString();allHtml+="<g><polyline fill=\"none\" stroke=\"#000000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" points=\""+strx1+","+stry1+" "+strx2+","+stry2+" "+strx3+","+stry3+" "+strx4+","+stry4+" "+strx5+","+stry5+" "+strx6+","+stry6+" "+strx1+","+stry1+"\"/>";allHtml+="\n";allHtml+="<line  stroke=\"#000000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" x1=\""+strx1+"\" y1=\""+stry1+"\" x2=\""+strx7+"\" y2=\""+stry7+"\"/>";allHtml+="\n";allHtml+="<line  stroke=\"#000000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" x1=\""+strx3+"\" y1=\""+stry3+"\" x2=\""+strx7+"\" y2=\""+stry7+"\"/>";allHtml+="\n";allHtml+="<line  stroke=\"#000000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" x1=\""+strx5+"\" y1=\""+stry5+"\" x2=\""+strx7+"\" y2=\""+stry7+"\"/></g>";w1++;}document.getElementById('txt1').value=allHtml;}</script><body onload="go()"><textarea rows="50" cols="100" id="txt1"></textarea>❈简笔画1.工具2.排线3.自动画画4.表情5.眼睛6.鼻子7.8.9.10.11.姿势12.衣服13.火柴人14.Q版人物15.十二生肖16.17.18.19.20.21.22.23.24.25.26.27.28.29.大象30.狮子31.长颈鹿32.33.虾蟹34.35.36.建筑37.家具38.文具39.交通40.花草41.42.水果43.蛋糕44.食物45.春节46.圣诞素材47.盆栽48.风景49.50.乐器51.房子52.京剧53.3D54.七龙珠全家福55.小丸子全家福56.蜡笔小新全家福57.机器猫全家福58.巴巴爸爸全家福59.小猪佩奇全家福60.旅行青蛙全家福61.光头强熊出没全家福62.海绵宝宝全家福63.丁老头全家福64.米老鼠全家福65.大白66.粉红豹67.葫芦娃全家福68.蓝精灵全家福69.超级飞侠70.柯南71.老夫子72.辛普森73.喜羊羊74.花仙子75.挤娃娃76.装饰画77.英语花体78.纹身画79.灰尘画80.漫画插画家81.沙画82.像素画83.春节84.粉红豹85.阿狸86.超人87.猫和老鼠88.石头画89.插花90.思维导图91.ai92.sai93.photoshop94.狐狸95.阿拉蕾96.花木兰97.奥特曼98.一拳超人99.复仇者联盟100.英雄联盟101.河马102.尔康103.地图懒人大学-愿天下知识都能秒会1.简笔画2.公开课3.水彩4.水墨画5.书法6.手抄报7.像素画8.数位板9.手帐10.素描11.速写12.花体13.自动画画14.折纸15.唱歌16.编曲17.尤克里里18.吉他19.物理20.化学21.少儿舞蹈22.C语言23.爬虫24.AI音箱评测25.手机评测26.PPT27.ai28.sai29.Excel30.程序员网站31.Linux32.ih533.小程序34.javascript35.公众号36.搜索引擎37.中国历史38.声律启蒙39.鬼故事40.幸福故事41.解剖学42.常见病43.国学44.国际音标45.日语46.马来语47.德语48.藏语49.意大利语50.葡萄牙语51.西班牙语52.越南语53.泰语54.俄语55.阿拉伯语56.韩语57.英语58.法语59.Adobe Illustrator60.Adobe Photoshop61.摄影教程汇总62.经典片头欣赏63.64.饺子65.烹饪教程汇总66.会计67.插花教程汇总68.健身69.瑜伽70.ted演讲汇总71.思维导图72.整理教程汇总73.装修74.包包DIY教程75.科学76.区块链77.伟人78.玩具79.体育80.电子81.考研政治82.哲学83.旅游84.服装85.股票86.种菜87.建筑88.t恤89.数字电路90.高考91.AE特效92.生物学93.人工智能94.棋牌95.机器人96.童话97.玩具98.99.征稿100.炒菜机101.access102.自媒体103.投资104.武器105.力学

(0)

相关推荐