Input form inside canvas element

前端 未结 4 831
抹茶落季
抹茶落季 2020-12-30 06:07

I\'m wondering if there was any way to get an input from the user, preferably to a texbox (or anywhere a user can see what he\'s writting) in a canvas element through javasc

4条回答
  •  臣服心动
    2020-12-30 06:36

    There is a canvas input library. It does not use any DOM elements, but is built purely on canvas. You can read more more about it and download it at http://goldfirestudios.com/blog/108/CanvasInput-HTML5-Canvas-Text-Input . It's open-source.

提交回复
热议问题