All Projects → zarocknz → Javascript Winwheel

zarocknz / Javascript Winwheel

Licence: mit
Create spinning prize wheels on HTML canvas with Winwheel.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Javascript Winwheel

Livebot
An app that allows you to be inside a bot!
Stars: ✭ 271 (-24.09%)
Mutual labels:  javascript-library
Length.js
📏 JavaScript library for length units conversion.
Stars: ✭ 292 (-18.21%)
Mutual labels:  javascript-library
Voca
The ultimate JavaScript string library
Stars: ✭ 3,387 (+848.74%)
Mutual labels:  javascript-library
Kero
kero is a front-end model framework. - kero是一个前端模型框架,做为MVVM架构中Model层的增强,提供多维数据模型,解决企业应用中复杂的业务应用场景的开发问题。
Stars: ✭ 276 (-22.69%)
Mutual labels:  javascript-library
Dropzone
Dropzone is an easy to use drag'n'drop library. It supports image previews and shows nice progress bars.
Stars: ✭ 16,097 (+4408.96%)
Mutual labels:  javascript-library
Kalmanjs
Javascript based Kalman filter for 1D data
Stars: ✭ 298 (-16.53%)
Mutual labels:  javascript-library
Apify Js
Apify SDK — The scalable web scraping and crawling library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.
Stars: ✭ 3,154 (+783.47%)
Mutual labels:  javascript-library
Josh.js
A JavaScript library to animate content on page scroll.
Stars: ✭ 345 (-3.36%)
Mutual labels:  javascript-library
Anychart
AnyChart is a lightweight and robust JavaScript charting solution with great API and documentation. The chart types and unique features are numerous, the library works easily with any development stack.
Stars: ✭ 288 (-19.33%)
Mutual labels:  javascript-library
Luaparse
A Lua parser written in JavaScript
Stars: ✭ 309 (-13.45%)
Mutual labels:  javascript-library
Grumbler
A template for writing distributable front-end javascript modules.
Stars: ✭ 280 (-21.57%)
Mutual labels:  javascript-library
Menuspy
A JavaScript library to make navigation menus highlight the item based on currently in view section.
Stars: ✭ 283 (-20.73%)
Mutual labels:  javascript-library
Cloudinary js
Cloudinary JavaScript library
Stars: ✭ 302 (-15.41%)
Mutual labels:  javascript-library
Oimophysics
A cross-platform 3D physics engine
Stars: ✭ 269 (-24.65%)
Mutual labels:  javascript-library
Nodepolus
NodePolus is a JavaScript library containing multiple implementations of the Among Us network protocol.
Stars: ✭ 331 (-7.28%)
Mutual labels:  javascript-library
Formvuelate
Dynamic schema-based form rendering for VueJS
Stars: ✭ 262 (-26.61%)
Mutual labels:  javascript-library
Preload It
A tiny 1kb JavaScript library for preloading assets on the browser via XHR2. It provides the ability to load assets of different file types and composite progress events.
Stars: ✭ 300 (-15.97%)
Mutual labels:  javascript-library
Js Library Boilerplate Basic
Javascript Minimal Starter Boilerplate - Webpack 5 🚀, Babel 7, UMD, Unit Testing
Stars: ✭ 354 (-0.84%)
Mutual labels:  javascript-library
Approvejs
A simple JavaScript validation library that doesn't interfere
Stars: ✭ 336 (-5.88%)
Mutual labels:  javascript-library
Binance
A wrapper for the Binance REST and WebSocket APIs. Also beautifies responses
Stars: ✭ 304 (-14.85%)
Mutual labels:  javascript-library

javascript-winwheel

Create spinning prize wheels on HTML canvas with Winwheel.js

Description

Winwheel.js is a feature packed JavaScript library that allows you to easily create HTML5 canvas Winning / Prize Wheels, Pie graphs and other things using a highly configurable JavaScript class.

Wheels can be animated using GreenSock's Animation Platform (TweenMax.js) which contain easing functions and many other powerful animation features.

Winwheel.js Features Include:

  • Easy to use, highly configurable JavaScript classes.
  • Draw wheels using code generated segments or graphically rich images.
  • Responsive features so wheels display correctly on different sized devices.
  • Numerous text orientation, direction, size and colour options.
  • Random or Pre-calculated prize stopping location.
  • Play sounds while the wheel is spinning including a "tick" sound.
  • Ability to get the segment the user clicked upon.
  • Fully commented source code. Plenty of tutorials and other documentation.
  • Winwheel.js is free to use with an open source license.

Example

let theWheel = new Winwheel({
    'numSegments'    : 4,
    'segments'       :
    [
        {'fillStyle' : '#eae56f', 'text' : 'Prize One'},
        {'fillStyle' : '#89f26e', 'text' : 'Prize Two'},
        {'fillStyle' : '#7de6ef', 'text' : 'Prize Three'},
        {'fillStyle' : '#e7706f', 'text' : 'Prize Four'}
    ],
    'animation' :
    {
        'type'     : 'spinToStop',
        'duration' : 5,
        'spins'    : 8
    }
});

More examples

See the /examples folder for examples of some of the types of things you can create with Winwheel.js, to see these examples in action please visit the examples section on my website http://dougtesting.net/winwheel/examples

Tutorials and other documentation

Please visit http://dougtesting.net/winwheel/docs to see a complete set of tutorials on how to use Winwheel.js as well as other documentation such as class references.

Maintainer

Douglas McKechie https://github.com/zarocknz

Please note

I am not planning to do any further work on this library as my day job keeps me very busy and after 7 years of Winwheel I would rather spend any spare time I do have for personal coding on other projects.

So this means if you would like a version of Winwheel.js for your current JavaScript framework of choice its up to you or others in the community to create it. If you create one perhaps open an Issue with the details so others can find and use it. Thanks.

You are welcome to ask questions using the Issues feature of Github, but please don't be offended if I take quite a long time to respond to them. To be honest its probably quicker to ask the Stackoverflow community for help https://stackoverflow.com/search?tab=newest&q=Winwheel

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].