Skip to content
forked from bobiscool/wxDraw

A lightweight canvas library which providing 2d draw for weapp 微信小程序2d动画库 😎 🐼

License

Notifications You must be signed in to change notification settings

arminWork/wxDraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 图形创建

    • rect
    • arc
    • polygon
      • 正n边形
      • 用户自己加的形状
    • image
    • 线条
      • 贝塞尔曲线
      • 普通线条
    • svg path
    • 椭圆
    • 三角形【其实包含用户自己形状里面 但是这里三角形 是a,b,c 中心点的形式】
    • 字体
    • 粒子动画元素?
  • 样式

    • 阴影
    • 渐变
    • 线宽
    • 线连接
    • 透明度
  • 拖拽检测

    • rect
    • arc
      • 整个圆形
      • 扇形区域
    • polygon 区域
      • 正多边形
      • 非规则多边形
    • 线条点击
    • 点 点击
    • 椭圆
    • 三角形
    • z-index
  • 动画

    • requestAnimationFrame垫片
    • 时间扭曲函数
    • 运动
      • 移动
        • x
        • y
      • 放大缩小 使用矩阵暂时搁浅
      • 旋转
        • [x]原点旋转
        • [x]自身中心点旋转
      • 变色
      • 循环动画
      • 连续动画
      • 暂停动画
    • 精灵图【小程序 所支持的drawImage功能太低级 所以取消】
  • [x]矩阵变换

  • z-index修改

  • 事件

    • 点击事件
    • 拖拽事件
    • 移入移出
  • 碰撞检测

About

A lightweight canvas library which providing 2d draw for weapp 微信小程序2d动画库 😎 🐼

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%