Git Product home page Git Product logo

clock's Introduction

H5画布API应用之手绘时钟

1.利用for循环语句来批量绘制时钟和分钟的刻度,分别每隔一定的角度来绘制一条短直线
2.用脚本来获取当前的系统时间,利用数学公式转换成时针分针和秒针的角度,从而来达到显示时间的效果
3.为了实时显示时间,设置每1000ms也就是1s重新绘制一次   在线预览地址 https://htmlpreview.github.io/?https://github.com/yaoyao0127/clock/blob/master/clock.html = ̄ω ̄=

clock's People

Contributors

yaoyao0127 avatar

Watchers

James Cloos 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.