jays611
jays611
  • 发布:2022-08-05 14:50
  • 更新:2022-08-05 14:50
  • 阅读:139

拓扑新动画效果,可拖拽,可滚轮缩放。

分类:uni-app

canvas拓扑动画
展示效果网址 http://jstopo.top

!展示视频

         init(){  
            this.domRef = this.$refs.canvas;  
            this.w = this.domRef.width = this.domRef.clientWidth,  
            this.h = this.domRef.height = this.domRef.clientHeight;  
            this.ctx = this.domRef.getContext("2d");  
            this.ctx.textAlign = "center";  
            this.ctx.textBaseline = "top";  
            this.ctx.font = "18px 黑体";  
            this.dotMove();  
        },
0 关注 分享

要回复文章请先登录注册