GithubHelp home page GithubHelp logo

seikon / tournament.js Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 11 KB

Javascript library to generate tournaments charts with HTML5 canvas

JavaScript 100.00%
tournament javascript-library brackets

tournament.js's Introduction

Tournament.js

Javascript library to generate canvas tournament brackets easily with automatic bracket fit

Welcome to Tournament.js

This library wants to develop a simply solution for web projects that need Tournaments diagrams deploying it in a few lines, but with the flexibility of customize the visualization and design

Based on HTML5 canvas to generate Graphics and Text. It allows to customize the size and style of each element,implements animations and fit it automatically with the brackets.

For the moment the library has only the direct-elimination (Play-off) tournament with 2 ways of visualization:

  • Normal: Tournament generates itself from left to right
  • Divided: Tournament generates itself from left to a center point (Math.log2(number of participants)) and from right to the same center point.

And two types of animation:

  • FadeOut: A participant appears in the next round from transparency 0 to 1
  • ByLetter: A participant appears in the next round letter by letter until its entire name is displayed

You can find practical examples and images in "examples" folder with all types of visualization.

Feel free to fork the repository and add new funcionalities to help grow up the library! :)

tournament.js's People

Contributors

seikon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

tournament.js's Issues

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.