zarocknz/javascript-winwheel

Is possible to use emojis on segments?

echeverrisantiago opened this issue · 2 comments

I'm using text right now but if could be possible to add emojis instead of text would be great 🔫

Possibly; I have not tried it myself. See https://stackoverflow.com/questions/56312457/how-to-load-and-draw-emojis-on-canvas-efficiently This seems to suggest you can provided the font used to render the text on the wheel supports it.

This wouldn't be a Winwheel.js limitation but a limitation of the Canvas API itself. According to the linked StackOverflow question, it is possible to just provide the emojis in the segment text.