
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
winwheel-module
Advanced tools
Create spinning prize wheels on HTML canvas with winwheel, as a module
Create spinning prize wheels on HTML canvas with winwheel-module, a fork of Winwheel.js
winwheel-module 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 gsap's TweenMax, which contain easing functions and many other powerful animation features.
winwheel-module Features Include:
const { Winwheel } = require('./winwheel-module');
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,
},
});
To see more examples, please visit the examples section on the original winwheel website http://dougtesting.net/winwheel/examples
Please visit http://dougtesting.net/winwheel/docs to see a complete set of tutorials on how to use winwheel-module as well as other documentation such as class references.
Douglas McKechie https://github.com/zarocknz
@theRealPadster https://github.com/theRealPadster
This wasn't created by me; It is just a fork of Winwheel.js that supports javascript commonjs modules
FAQs
Create spinning prize wheels on HTML canvas with winwheel, as a module
The npm package winwheel-module receives a total of 7 weekly downloads. As such, winwheel-module popularity was classified as not popular.
We found that winwheel-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.