Hi there.
well, I want to add a draw in canvas more effective. with pen tablets, or portable tablet with pen.
then, these pen infomation into onmousemove event.
Let’s see how it works with pseudo code.
canvas.onmousemove = function(e){
if(e.penSupport){ // is your browser have a pen or pen event support?
console.log('pen pressure : ' + e.pen.pressure);
console.log('pen tilt : ' + ['x : ', e.pen.tiltX, 'y : ', e.pen.tiltY].join(','));
}
}
I think it’s more useful for drawing, pen note, signing, etc.
is it too small suggest?