Jump to content

Handriting using HTML5


Ahmed NCIT
 Share

Recommended Posts

This is pretty easy to make.

You don't really need PIXI for that, even tho you could use it. However, drawing lines in WebGL is usually pretty ugly.

 

Basically you draw your letter on a offscreen canvas.

Then you define the start and ending points.

 

On tap/mousedown you check whether or not the player clicked on the starting point.

 

While the mouse is hold down / the tap is hold, you manipulate the imagedata of that canvas.

If your lines hits a white pixel (outside of the letter) you abort the drawing and the player has to start again.

 

If you need help, you can just ask here. I could provide a really simple demo for this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...