Code Monkey home page Code Monkey logo

wipe's Introduction

wipe

Wipe是一款基于HTML5 canvas的移动端,涂抹,自动播放涂抹轨迹,刮刮乐的插件。可以轻松实现,涂抹,记录涂抹轨迹自动播放。

#1 使用说明

###html

<script src="../src/canvas.js"></script> <script src="../src/wipe.js"></script> 其中canvas.js是CanvasRenderingContext2D.prototype.扩展库。方便链式操作。 ###css #wipe { margin: 10px auto; width: 300px; height: 430px; background: url(img/girl.jpg) no-repeat; background-size: 100% 100%; } canvas { opacity: 0.9; }

css其实只是指定canvas后面的世界,和canvas的大小; ###js var wipe = new Wipe({ el: '#wipe', fg: '#ccc', size: 50, debug: false, autoWipe: false, data: null, onswiping: function (percent) { //do something 涂抹回调函数 } })

#2 演示 就是这么简单,开始玩起来吧! ###1、默认 ###2、自动涂抹,需要生成轨迹 ###3、涂抹图片

wipe's People

Contributors

leiroc avatar lephy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.