In order to quickly and easily create something, I recommend using a pre-existing Javascript library designed for spinning prize wheels.
As the developer of Winwheel.js, a specialized Javascript library for this purpose, I invite you to visit
A standout feature of Winwheel.js is its ability to combine visually appealing images with customizable text labels on wheel segments, allowing for both aesthetics and flexibility in design.
If you're interested, here is an example of how to implement Winwheel.js...
var myWheel = new Winwheel({
'drawMode' : 'image',
'drawText' : true,
'numSegments' : 4,
'textOrientation' : 'curved',
'textAlignment' : 'outer',
'textMargin' : 5,
'textFontFamily' : 'courier',
'segments' :
[
{'text' : 'Television'},
{'text' : 'Mobile Phone'},
{'text' : 'Old Radio'},
{'text' : 'Computer'}
]
});
var wheelImg = new Image();
wheelImg.onload = function()
{
myWheel.wheelImage = wheelImg;
myWheel.draw();
}
wheelImg.src = "wheel_image.png";
You can find comprehensive tutorials on using Winwheel.js on my website, including one specifically dedicated to creating image-based wheels:
Best regards,
DouG