Giter Club home page Giter Club logo

hanzi's Introduction

Hanzi Character Animation

Demo: https://www.eecs.tufts.edu/~cconle01/hanzi/

##About The goal of this project was to modernize the web-based animation of Hanzi strokes, used by Tufts Chinese Department in their intro level classes. The existing animation was Java based, requiring the installation of a plugin. This became a barrier for many students, preventing widespread use.

The new version is implemented entirely in HTML5, CSS, & Javascript, making it compatible with all modern browsers. Strokes are loaded from the database and the animations are created dynamically, allowing for any stroke to be represented. Each stroke is animated using CSS keyframe animations, which produce fast loading animations that appear smooth and fluid.

##Installation Grab the source and you're good to go!

##Use Feed the character string into the ingestStrokeData() function and store the result as strokes. Everything else takes care of itself

##Data Format Each stroke data string contains individual strokes marked by a # followed by

  • a number: the direction of the stroke
    • 1: Left to Right,
    • 2: Upper Left to Lower Right
    • 3: Top to Bottom
    • 4: Upper Right to Lower Left
    • 5: Right to Left
    • 6: Lower Right to Upper Left
    • 7: Bottom to Top
    • 8: Lower Left to Upper Right
  • P/N: pause or no pause after this stroke
    • P: pause
    • N: no pause
  • R/O: color
    • R: red
    • O: black
  • List of polygon points in the form x1,y1;x2,y2; etc

hanzi's People

Contributors

chaseconley avatar

Stargazers

 avatar Tiago Castro Henriques avatar aboutboy avatar KeJun avatar Quentin avatar  avatar Chris Beiser avatar  avatar Liam Doherty avatar Anderson LIN avatar  avatar Dave Flynn avatar Jingjun avatar

Watchers

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